Changeset 1236
- Timestamp:
- 2000-06-23T17:03:29+12:00 (24 years ago)
- Location:
- trunk/gsdl/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/gsdlunicode.cpp
r1233 r1236 28 28 /* 29 29 $Log$ 30 Revision 1.14 2000/06/23 05:03:29 nzdl 31 fixed a couple of compiler warnings created by the new encoding stuff 32 30 33 Revision 1.13 2000/06/23 03:21:38 sjboddie 31 34 Created converter classes for simple 8 bit encodings that use a … … 608 611 char *from = parts[0].getcstr(); 609 612 char *to = parts[1].getcstr(); 610 unsigned short f = 0, t = 0;613 unsigned int f = 0, t = 0; 611 614 sscanf (from, "%i", &f); 612 615 sscanf (to, "%i", &t); … … 614 617 delete to; 615 618 616 if (in) mapping[ f] =t;617 else mapping[ t] =f;619 if (in) mapping[(unsigned short)f] = (unsigned short)t; 620 else mapping[(unsigned short)t] = (unsigned short)f; 618 621 } 619 622 -
trunk/gsdl/lib/gsdlunicode.h
r1233 r1236 246 246 class simplemapinconvertclass : public inconvertclass { 247 247 public: 248 virtual ~simplemapinconvertclass () {} 249 248 250 void convert (text_t &output, status_t &status); 249 251 … … 256 258 class simplemapoutconvertclass : public rzwsoutconvertclass { 257 259 public: 260 virtual ~simplemapoutconvertclass () {} 261 258 262 void convert (char *output, size_t maxlen, 259 263 size_t &len, status_t &status);
Note:
See TracChangeset
for help on using the changeset viewer.