Changeset 12612
- Timestamp:
- 2006-08-30T15:18:59+12:00 (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/indexers/mgpp/text/UCArray.cpp
r12319 r12612 46 46 } 47 47 48 /** char * returned becomes the responsibility of the caller */ 48 49 char * GetCStr(const UCArray& text) { 49 50 … … 60 61 return cstr; 61 62 } 63 64 /** char * returned becomes the responsibility of the caller */ 62 65 unsigned char * MyGetCStr(const UCArray& text) { 63 66 … … 259 262 utf8_word_to_unicode (a2_str, a2_out, 255); 260 263 264 delete []a1_str; 265 delete []a2_str; 266 261 267 int l1 = a1_out[0]; 262 268 int l2 = a2_out[0]; … … 340 346 utf8_word_to_unicode (a2_str, a2_out, 255); 341 347 348 delete []a1_str; 349 delete []a2_str; 350 342 351 unsigned int len = a2_out[0];; 343 352 for (int i=1; i<=len; ++i) { -
trunk/mgpp/text/UCArray.cpp
r12319 r12612 46 46 } 47 47 48 /** char * returned becomes the responsibility of the caller */ 48 49 char * GetCStr(const UCArray& text) { 49 50 … … 60 61 return cstr; 61 62 } 63 64 /** char * returned becomes the responsibility of the caller */ 62 65 unsigned char * MyGetCStr(const UCArray& text) { 63 66 … … 259 262 utf8_word_to_unicode (a2_str, a2_out, 255); 260 263 264 delete []a1_str; 265 delete []a2_str; 266 261 267 int l1 = a1_out[0]; 262 268 int l2 = a2_out[0]; … … 340 346 utf8_word_to_unicode (a2_str, a2_out, 255); 341 347 348 delete []a1_str; 349 delete []a2_str; 350 342 351 unsigned int len = a2_out[0];; 343 352 for (int i=1; i<=len; ++i) {
Note:
See TracChangeset
for help on using the changeset viewer.