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