2009-02-19 20:18:25 +03:00
|
|
|
/*
|
2011-10-03 20:19:23 +04:00
|
|
|
** $Id: lctype.c,v 1.10 2011/06/24 12:25:33 roberto Exp roberto $
|
2009-02-19 20:18:25 +03:00
|
|
|
** 'ctype' functions for Lua
|
|
|
|
** See Copyright Notice in lua.h
|
|
|
|
*/
|
|
|
|
|
2011-10-03 20:19:23 +04:00
|
|
|
#define lctype_c
|
|
|
|
#define LUA_CORE
|
|
|
|
|
2009-02-19 20:18:25 +03:00
|
|
|
#include "lctype.h"
|
|
|
|
|
2011-06-24 16:25:33 +04:00
|
|
|
#if !LUA_USE_CTYPE /* { */
|
|
|
|
|
|
|
|
#include <limits.h>
|
|
|
|
|
2009-11-19 22:06:52 +03:00
|
|
|
LUAI_DDEF const lu_byte luai_ctype_[UCHAR_MAX + 2] = {
|
2009-03-26 21:53:52 +03:00
|
|
|
0x00, /* EOZ */
|
2011-06-23 20:01:06 +04:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0. */
|
2009-02-19 20:18:25 +03:00
|
|
|
0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00,
|
2011-06-23 20:01:06 +04:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 1. */
|
2009-02-19 20:18:25 +03:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
2011-06-23 20:01:06 +04:00
|
|
|
0x0c, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, /* 2. */
|
2009-02-19 20:18:25 +03:00
|
|
|
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
|
2011-06-23 20:01:06 +04:00
|
|
|
0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, /* 3. */
|
2009-03-10 20:42:33 +03:00
|
|
|
0x16, 0x16, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
|
2011-06-23 20:01:06 +04:00
|
|
|
0x04, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x05, /* 4. */
|
2009-02-19 20:18:25 +03:00
|
|
|
0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
|
2011-06-23 20:01:06 +04:00
|
|
|
0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, /* 5. */
|
|
|
|
0x05, 0x05, 0x05, 0x04, 0x04, 0x04, 0x04, 0x05,
|
|
|
|
0x04, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x05, /* 6. */
|
2009-02-19 20:18:25 +03:00
|
|
|
0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
|
2011-06-23 20:01:06 +04:00
|
|
|
0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, /* 7. */
|
2009-02-19 20:18:25 +03:00
|
|
|
0x05, 0x05, 0x05, 0x04, 0x04, 0x04, 0x04, 0x00,
|
2011-06-23 20:01:06 +04:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 8. */
|
2009-02-19 20:18:25 +03:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
2011-06-23 20:01:06 +04:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 9. */
|
2009-02-19 20:18:25 +03:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
2011-06-23 20:01:06 +04:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* a. */
|
2009-02-19 20:18:25 +03:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
2011-06-23 20:01:06 +04:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* b. */
|
2009-02-19 20:18:25 +03:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
2011-06-23 20:01:06 +04:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* c. */
|
2009-02-19 20:18:25 +03:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
2011-06-23 20:01:06 +04:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* d. */
|
2009-02-19 20:18:25 +03:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
2011-06-23 20:01:06 +04:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* e. */
|
2009-02-19 20:18:25 +03:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
2011-06-23 20:01:06 +04:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* f. */
|
2009-05-18 21:15:14 +04:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
2009-02-19 20:18:25 +03:00
|
|
|
};
|
2011-06-24 16:25:33 +04:00
|
|
|
|
|
|
|
#endif /* } */
|