Changeset 8666
- Timestamp:
- 2004-11-25T10:20:30+13:00 (19 years ago)
- Location:
- trunk/gsdl/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/gsdlunicode.cpp
r3667 r8666 415 415 416 416 mapinconvertclass::mapinconvertclass () { 417 m ultibyte = 0;417 m_multibyte = 0; 418 418 mapbuflen = 0; 419 419 } … … 484 484 485 485 mapoutconvertclass::mapoutconvertclass () { 486 m ultibyte = 0;486 m_multibyte = 0; 487 487 mapbuflen=0; 488 488 mapbufhere=0; … … 537 537 } else { 538 538 outc = converter.convert (*texthere); 539 if (m ultibyte) {539 if (m_multibyte) { 540 540 mapbuf[0] = (unsigned char)(outc >> 8); 541 541 mapbuf[1] = (unsigned char)(outc & 0xff); -
trunk/gsdl/lib/gsdlunicode.h
r3667 r8666 158 158 }; 159 159 160 void set_multibyte (int new_multibyte) {m ultibyte = new_multibyte;};160 void set_multibyte (int new_multibyte) {m_multibyte = new_multibyte;}; 161 161 162 162 void reset (); … … 167 167 unsigned char mapbuf[MAXMAPCHARLEN]; 168 168 size_t mapbuflen; 169 int m ultibyte;169 int m_multibyte; 170 170 171 171 // note: multiple instances of mapinconvert class are expensive … … 180 180 if (mapbuflen == 0) return 0; 181 181 if (mapbuf[0] < 0x80) return 1; 182 if (!m ultibyte) return 1;182 if (!m_multibyte) return 1; 183 183 return 2; 184 184 } … … 203 203 }; 204 204 205 void set_multibyte (int new_multibyte) {m ultibyte = new_multibyte;};205 void set_multibyte (int new_multibyte) {m_multibyte = new_multibyte;}; 206 206 207 207 void reset (); … … 213 213 size_t mapbuflen; 214 214 size_t mapbufhere; 215 int m ultibyte;215 int m_multibyte; 216 216 217 217 mapconvert converter;
Note:
See TracChangeset
for help on using the changeset viewer.