Changeset 453 for branches/thune/thread_safe/print.c
- Timestamp:
- 08/25/07 22:49:09 (15 months ago)
- Files:
-
- 1 modified
-
branches/thune/thread_safe/print.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/thune/thread_safe/print.c
r452 r453 31 31 32 32 33 extern int copyU tf16ToAscii( char* dest, const uint16_t* src, int len );33 extern int copyUcs2ToUtf8( char* dest, const uint16_t* src, int len ); 34 34 35 35 … … 43 43 44 44 45 void ur_strCatUtf16( UString* str, const uint16_t* cp, int len ) 46 { 47 if( (str->used + len) > str->avail ) 48 EXPAND( str, len ); 49 str->used += copyUtf16ToAscii( str->ptr.c + str->used, cp, len ); 45 void ur_strCatUcs2( UString* str, const uint16_t* cp, int len ) 46 { 47 EXPAND( str, len * 2 ); 48 str->used += copyUcs2ToUtf8( str->ptr.c + str->used, cp, len ); 50 49 } 51 50 … … 78 77 79 78 case UR_ENC_UTF16: 80 ur_strCatU tf16( out, str2->ptr.u16 + si, used );79 ur_strCatUcs2( out, str2->ptr.u16 + si, used ); 81 80 break; 82 81 } … … 271 270 #define APP_STR_FUNC _appendStringUtf16 272 271 #define APP_STR_T uint16_t 273 #define APP_STR_COPY ur_strCatU tf16272 #define APP_STR_COPY ur_strCatUcs2 274 273 #include "print_string.c" 275 274
