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