home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / macfe / restext / csid.r < prev    next >
Encoding:
Text File  |  1998-04-08  |  2.3 KB  |  67 lines

  1.  /*
  2.  * The contents of this file are subject to the Netscape Public License
  3.  * Version 1.0 (the "NPL"); you may not use this file except in
  4.  * compliance with the NPL.  You may obtain a copy of the NPL at
  5.  * http://www.mozilla.org/NPL/
  6.  *
  7.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  8.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  9.  * for the specific language governing rights and limitations under the
  10.  * NPL.
  11.  *
  12.  * The Initial Developer of this code under the NPL is Netscape
  13.  * Communications Corporation.  Portions created by Netscape are
  14.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  15.  * Reserved.
  16.  */
  17. /*
  18.     File:        csid.r
  19.  
  20.     Contains:    Type Declarations for Rez and DeRez
  21.  
  22.     Copyright:    ⌐ 1986-1994 by Netscape Communication, Inc.
  23.                 All Fights Reserved.
  24. */
  25.  
  26. #ifndef __CSID_R__
  27. #define __CSID_R__
  28.  
  29. /* Duplicate from i18nlib.h */
  30. #define SINGLEBYTE 0x0000 /* 0000 0000 0000 0000 */
  31. #define MULTIBYTE  0x0100 /* 0000 0001 0000 0000 */
  32. #define STATEFUL   0x0200 /* 0000 0010 0000 0000 */
  33. #define WIDECHAR   0x0300 /* 0000 0011 0000 0000 */
  34.  
  35. /* line-break on spaces */
  36. #define CS_SPACE   0x0400 /* 0000 0100 0000 0000 */
  37.  
  38. /* Auto Detect Mode */
  39. #define CS_AUTO    0x0800 /* 0000 1000 0000 0000 */
  40.  
  41.  
  42. /* Code Set IDs */
  43. /* CS_DEFAULT: used if no charset param in header */
  44. /* CS_UNKNOWN: used for unrecognized charset */
  45.  
  46.                     /* type                  id   */
  47. #define CS_DEFAULT    (SINGLEBYTE         |   0)
  48. #define CS_ASCII      (SINGLEBYTE         |   1)
  49. #define CS_LATIN1     (SINGLEBYTE         |   2)
  50. #define CS_JIS        (STATEFUL           |   3)
  51. #define CS_SJIS       (MULTIBYTE          |   4)
  52. #define CS_EUCJP      (MULTIBYTE          |   5)
  53. #define CS_JIS_AUTO   (CS_AUTO|STATEFUL   |   3)
  54. #define CS_SJIS_AUTO  (CS_AUTO|MULTIBYTE  |   4)
  55. #define CS_EUCJP_AUTO (CS_AUTO|MULTIBYTE  |   5)
  56. #define CS_MAC_ROMAN  (SINGLEBYTE         |   6)
  57. #define CS_BIG5       (MULTIBYTE          |   7)
  58. #define CS_GB_8BIT    (MULTIBYTE          |   8)
  59. #define CS_CNS_8BIT   (MULTIBYTE          |   9)
  60. #define CS_LATIN2     (SINGLEBYTE         |  10)
  61. #define CS_MAC_CE     (SINGLEBYTE         |  11)
  62. #define CS_KSC_8BIT   (MULTIBYTE|CS_SPACE |  12)
  63. #define CS_2022_KR    (MULTIBYTE          |  13)
  64. #define CS_UNKNOWN    (SINGLEBYTE         | 255)
  65.  
  66. #endif
  67.