ctype.c 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * (C) Copyright 2000
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. /*
  24. * linux/lib/ctype.c
  25. *
  26. * Copyright (C) 1991, 1992 Linus Torvalds
  27. */
  28. #include <linux/ctype.h>
  29. unsigned char _ctype[] = {
  30. _C,_C,_C,_C,_C,_C,_C,_C, /* 0-7 */
  31. _C,_C|_S,_C|_S,_C|_S,_C|_S,_C|_S,_C,_C, /* 8-15 */
  32. _C,_C,_C,_C,_C,_C,_C,_C, /* 16-23 */
  33. _C,_C,_C,_C,_C,_C,_C,_C, /* 24-31 */
  34. _S|_SP,_P,_P,_P,_P,_P,_P,_P, /* 32-39 */
  35. _P,_P,_P,_P,_P,_P,_P,_P, /* 40-47 */
  36. _D,_D,_D,_D,_D,_D,_D,_D, /* 48-55 */
  37. _D,_D,_P,_P,_P,_P,_P,_P, /* 56-63 */
  38. _P,_U|_X,_U|_X,_U|_X,_U|_X,_U|_X,_U|_X,_U, /* 64-71 */
  39. _U,_U,_U,_U,_U,_U,_U,_U, /* 72-79 */
  40. _U,_U,_U,_U,_U,_U,_U,_U, /* 80-87 */
  41. _U,_U,_U,_P,_P,_P,_P,_P, /* 88-95 */
  42. _P,_L|_X,_L|_X,_L|_X,_L|_X,_L|_X,_L|_X,_L, /* 96-103 */
  43. _L,_L,_L,_L,_L,_L,_L,_L, /* 104-111 */
  44. _L,_L,_L,_L,_L,_L,_L,_L, /* 112-119 */
  45. _L,_L,_L,_P,_P,_P,_P,_C, /* 120-127 */
  46. 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 128-143 */
  47. 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 144-159 */
  48. _S|_SP,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P, /* 160-175 */
  49. _P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P, /* 176-191 */
  50. _U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U, /* 192-207 */
  51. _U,_U,_U,_U,_U,_U,_U,_P,_U,_U,_U,_U,_U,_U,_U,_L, /* 208-223 */
  52. _L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L, /* 224-239 */
  53. _L,_L,_L,_L,_L,_L,_L,_P,_L,_L,_L,_L,_L,_L,_L,_L}; /* 240-255 */