Changeset 21927 for trunk/lib/unicode
- Timestamp:
- Dec 23, 2011, 7:16:58 PM (14 years ago)
- Location:
- trunk/lib/unicode
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/unicode/cptable.c
r21916 r21927 150 150 151 151 /* get the table of a given code page */ 152 const union cptable *cp_get_table( unsigned int codepage )152 _K32CONV const union cptable *cp_get_table( unsigned int codepage ) 153 153 { 154 154 const union cptable **res; … … 166 166 167 167 /* enum valid codepages */ 168 const union cptable *cp_enum_table( unsigned int index )168 _K32CONV const union cptable *cp_enum_table( unsigned int index ) 169 169 { 170 170 if (index >= NB_CODEPAGES) return NULL; -
trunk/lib/unicode/mbtowc.c
r21916 r21927 236 236 237 237 /* return -1 on dst buffer overflow, -2 on invalid input char */ 238 int cp_mbstowcs( const union cptable *table, int flags,239 const char *src, int srclen,240 WCHAR *dst, int dstlen )238 _K32CONV int cp_mbstowcs( const union cptable *table, int flags, 239 const char *src, int srclen, 240 WCHAR *dst, int dstlen ) 241 241 { 242 242 if (NULL == src) return -2; -
trunk/lib/unicode/string.c
r21916 r21927 12 12 #include "wine/unicode.h" 13 13 14 int strcmpiW( const WCHAR *str1, const WCHAR *str2 )14 _K32CONV int strcmpiW( const WCHAR *str1, const WCHAR *str2 ) 15 15 { 16 16 for (;;) … … 23 23 } 24 24 25 int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n )25 _K32CONV int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n ) 26 26 { 27 27 int ret = 0; … … 31 31 } 32 32 33 WCHAR *strstrW( const WCHAR *str, const WCHAR *sub )33 _K32CONV WCHAR *strstrW( const WCHAR *str, const WCHAR *sub ) 34 34 { 35 35 while (*str) … … 46 46 /* Copyright (C) 1991,92,94,95,96,97,98,99,2000,2001 Free Software Foundation, Inc. */ 47 47 48 long int strtolW( const WCHAR *nptr, WCHAR **endptr, int base )48 _K32CONV long int strtolW( const WCHAR *nptr, WCHAR **endptr, int base ) 49 49 { 50 50 int negative; … … 165 165 } 166 166 167 unsigned long int strtoulW( const WCHAR *nptr, WCHAR **endptr, int base )167 _K32CONV unsigned long int strtoulW( const WCHAR *nptr, WCHAR **endptr, int base ) 168 168 { 169 169 int negative; … … 276 276 } 277 277 278 int vsnprintfW(WCHAR *str, unsigned int len, const WCHAR *format, va_list valist)278 _K32CONV int vsnprintfW(WCHAR *str, unsigned int len, const WCHAR *format, va_list valist) 279 279 { 280 280 unsigned int written = 0; … … 395 395 396 396 397 int snprintfW(WCHAR *str, unsigned int len, const WCHAR *format, ...)397 _K32CONV int snprintfW(WCHAR *str, unsigned int len, const WCHAR *format, ...) 398 398 { 399 399 int retval; … … 405 405 } 406 406 407 int sprintfW( WCHAR *str, const WCHAR *format, ...)407 _K32CONV int sprintfW( WCHAR *str, const WCHAR *format, ...) 408 408 { 409 409 int retval; -
trunk/lib/unicode/utf8.c
r21916 r21927 47 47 /* wide char to UTF-8 string conversion */ 48 48 /* return -1 on dst buffer overflow */ 49 int utf8_wcstombs( const WCHAR *src, int srclen, char *dst, int dstlen )49 _K32CONV int utf8_wcstombs( const WCHAR *src, int srclen, char *dst, int dstlen ) 50 50 { 51 51 int ret = srclen; … … 127 127 /* UTF-8 to wide char string conversion */ 128 128 /* return -1 on dst buffer overflow, -2 on invalid input char */ 129 int utf8_mbstowcs( int flags, const char *src, int srclen, WCHAR *dst, int dstlen )129 _K32CONV int utf8_mbstowcs( int flags, const char *src, int srclen, WCHAR *dst, int dstlen ) 130 130 { 131 131 int len, count; -
trunk/lib/unicode/wctomb.c
r21916 r21927 378 378 /* wide char to multi byte string conversion */ 379 379 /* return -1 on dst buffer overflow */ 380 int cp_wcstombs( const union cptable *table, int flags,380 _K32CONV int cp_wcstombs( const union cptable *table, int flags, 381 381 const WCHAR *src, int srclen, 382 382 char *dst, int dstlen, const char *defchar, int *used )
Note:
See TracChangeset
for help on using the changeset viewer.