strStateP.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* stateP.h - header file for string */
  2. /* Copyright 1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01b,22sep92,rrr  added support for c++
  7. 01a,08jul92,smb  written and documented.
  8. */
  9. /*
  10. DESCRIPTION
  11. SEE ALSO: American National Standard X3.159-1989
  12. */
  13. #ifndef __INCstrStatePh
  14. #define __INCstrStatePh
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #define ST_CH 0x00ff
  19. #define ST_STATE 0x0f00
  20. #define ST_STOFF 8
  21. #define ST_FOLD 0x8000
  22. #define ST_INPUT 0x4000
  23. #define ST_OUTPUT 0x2000
  24. #define ST_ROTATE 0x1000
  25. #define _NSTATE 16
  26. typedef struct
  27.     {
  28.     const unsigned short *__table[_NSTATE];
  29.     } __statetable;
  30. extern __statetable __costate; /* string collate character table */
  31. #if FALSE     /* NOT IMPLEMENTED */
  32. extern __statetable __mbstate;  /* multibyte character table */
  33. extern __statetable __wcstate;  /* wide character table */
  34. #endif
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif /* __INCstrStatePh */