Changeset 147 for trunk/include


Ignore:
Timestamp:
Mar 16, 2002, 8:53:47 AM (23 years ago)
Author:
umoeller
Message:

Misc updates for Unicode.

Location:
trunk/include
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/encodings/alltables.h

    r37 r147  
    2727// #include "encodings\cp949.h"
    2828// #include "encodings\cp950.h"
     29#include "encodings\cp1004.h"       // added V0.9.18 (2002-03-08) [umoeller]
    2930#include "encodings\cp1250.h"
    3031#include "encodings\cp1251.h"
  • trunk/include/encodings/base.h

    r97 r147  
    1616    /*
    1717     *@@ XWPENCODINGMAP:
    18      *      entry in an 8-bit to Unicode conversion table.
     18     *      entry in a codepage-to-Unicode conversion table.
    1919     */
    2020
    2121    typedef struct _XWPENCODINGMAP
    2222    {
    23         unsigned short      usFrom;
     23        unsigned short      usCP;
    2424        unsigned short      usUni;
    2525    } XWPENCODINGMAP, *PXWPENCODINGMAP;
    2626
    2727    /*
    28      *@@ XWPENCODINGID:
     28     *@@ ENCID:
    2929     *      enum identifying each encoding set which is
    3030     *      generally supported. Each ID corresponds to
     
    3232     */
    3333
    34     typedef enum _XWPENCODINGID
     34    typedef enum _ENCID
    3535    {
     36        UNSUPPORTED,
    3637        enc_cp437,
    3738        enc_cp737,
     
    5455        enc_cp949,
    5556        enc_cp950,
     57        enc_cp1004,     // added V0.9.18 (2002-03-08) [umoeller]
    5658        enc_cp1250,
    5759        enc_cp1251,
     
    7678        enc_iso8859_14,
    7779        enc_iso8859_15
    78     } XWPENCODINGID;
     80    } ENCID;
     81
     82    /*
     83     *@@ CONVERSION:
     84     *
     85     *@@added V0.9.18 (2002-03-08) [umoeller]
     86     */
     87
     88    typedef struct _CONVERSION
     89    {
     90        ENCID   EncodingID;
     91
     92        // to get Unicode for character 123 in the specific
     93        // encoding, do pTable->ausEntriesUniFromCP[123].
     94        // If you get 0xFFFF, the encoding is undefined.
     95        unsigned short  usHighestCP;
     96        unsigned short  *ausEntriesUniFromCP;  // usHighestCP + 1 entries
     97
     98        // to get codepage for unicode character 123,
     99        // do pTable->ausEntriesCPFromUni[123].
     100        // If you get 0xFFFF, the encoding is undefined.
     101        unsigned short  usHighestUni;
     102        unsigned short  *ausEntriesCPFromUni;   // usHighestUni + 1 entries
     103
     104    } CONVERSION, *PCONVERSION;
     105
     106    typedef enum _ENCBYTECOUNT
     107    {
     108        SINGLE,
     109        DOUBLE,
     110        EBCDIC,
     111        MULTI_UNICODE,
     112        UNKNOWN
     113    } ENCBYTECOUNT;
     114
     115    ENCID encFindIdForCodepage(unsigned short usCodepage,
     116                                       const char **ppcszDescription,
     117                                       ENCBYTECOUNT *pByteCount);
     118
     119    PCONVERSION encCreateCodec(ENCID id);
     120
     121    void encFreeCodec(PCONVERSION *ppTable);
     122
     123    unsigned long encChar2Uni(PCONVERSION pTable,
     124                              unsigned short c);
     125
     126    unsigned short encUni2Char(PCONVERSION pTable,
     127                               unsigned long ulUni);
    79128
    80129    unsigned long encDecodeUTF8(const char **ppch);
  • trunk/include/encodings/cp1250.h

    r37 r147  
    33 *@@sourcefile cp1250.h:
    44 *      encoding translation for CP1250 to Unicode.
     5 *
     6 *      Note: From my checking, 1250 is exactly the
     7 *      same as 1004, except for character point 0xAF.
    58 *
    69 *@@added V0.9.9 (2001-02-10) [umoeller]
  • trunk/include/encodings/cp1252.h

    r37 r147  
    33 *@@sourcefile cp1252.h:
    44 *      encoding translation for CP1252 to Unicode.
     5 *
     6 *      Note: From my checking, 1252 is exactly the
     7 *      same as 1004, except for codepoint 0xAF.
    58 *
    69 *@@added V0.9.9 (2001-02-10) [umoeller]
  • trunk/include/helpers/cnrh.h

    r113 r147  
    8686    {
    8787        ULONG   ulFieldOffset;
    88         PSZ     pszColumnTitle;
     88        PCSZ    pszColumnTitle;
    8989        ULONG   ulDataType;
    9090        ULONG   ulOrientation;
     
    450450     *      This can only be used after BEGIN_CNRINFO().
    451451     *
     452     *      Container sort funcs must have this prototype:
     453     +
     454     +      SHORT EXPENTRY fnCompare(PRECORDCORE p1, PRECORDCORE p2, PVOID pStorage)
     455     *
    452456     *@@added V0.9.0
    453457     */
  • trunk/include/helpers/configsys.h

    r117 r147  
    6666                    // -- CFGRPL_REMOVEPART mode (5)
    6767
    68         PSZ         pszUniqueSearchString2;
     68        PCSZ        pszUniqueSearchString2;
    6969                    // for UNIQUE(statement2):
    7070                    // the "statement2" to search for
     
    7676                    // 2: add before pszSearchString
    7777                    // 3: add after pszSearchString
    78         PSZ         pszVerticalSearchString;
     78        PCSZ        pszVerticalSearchString;
    7979                    // for iVertical == 2 or 3
    8080
    81         PSZ         pszNewLine;
     81        PCSZ        pszNewLine;
    8282                    // this is a copy of stuff before the "|" char
    8383                    // in pszConfigSys given to the constructor
  • trunk/include/helpers/linklist.h

    r141 r147  
    9595    #define LINKLISTMAGIC 0xf124        // could be anything
    9696
    97     typedef signed short _System FNSORTLIST(void*, void*, void*);
     97    typedef signed short XWPENTRY FNSORTLIST(void*, void*, void*);
    9898                            // changed V0.9.0 (99-10-22) [umoeller]
    9999    typedef FNSORTLIST *PFNSORTLIST;
  • trunk/include/helpers/nls.h

    r115 r147  
    9999    APIRET XWPENTRY nlsUpper(PSZ psz, ULONG ulLength);
    100100
     101    /*
     102     *@@ STRINGENTITY:
     103     *
     104     *@@added V0.9.16 (2001-09-29) [umoeller]
     105     */
     106
     107    typedef struct _STRINGENTITY
     108    {
     109        PCSZ    pcszEntity;
     110        PCSZ    *ppcszString;
     111    } STRINGENTITY, *PSTRINGENTITY;
     112
     113    typedef const struct _STRINGENTITY *PCSTRINGENTITY;
     114
     115    VOID nlsInitStrings(HAB hab,
     116                        HMODULE hmod,
     117                        PCSTRINGENTITY paEntities,
     118                        ULONG cEntities);
     119
     120    PCSZ nlsGetString(ULONG ulStringID);
     121
    101122#endif
    102123
  • trunk/include/helpers/stringh.h

    r143 r147  
    145145    ULONG XWPENTRY strhGetBlock(const char *pszSearchIn,
    146146                                PULONG pulSearchOffset,
    147                                 PSZ pszTag,
     147                                const char *pszTag,
    148148                                PSZ *ppszBlock,
    149149                                PSZ *ppszAttribs,
  • trunk/include/helpers/tmsgfile.h

    r113 r147  
    5454                         PCSZ pcszMessageName,
    5555                         PXSTRING pstr,
    56                          PSZ *pTable,
     56                         PCSZ *pTable,
    5757                         ULONG cTableEntries);
    5858
  • trunk/include/helpers/winh.h

    r135 r147  
    652652
    653653    BOOL XWPENTRY winhAdjustControls(HWND hwndDlg,
    654                                      MPARAM *pmpFlags,
     654                                     const MPARAM *pmpFlags,
    655655                                     ULONG ulCount,
    656656                                     PSWP pswpNew,
Note: See TracChangeset for help on using the changeset viewer.