Lines 40-50
Link Here
|
40 |
} |
40 |
} |
41 |
|
41 |
|
42 |
void Utf8ToXML::init(const char * const toTranscode) { |
42 |
void Utf8ToXML::init(const char * const toTranscode) { |
43 |
unsigned int srcLength = std::strlen(toTranscode) + 1; |
43 |
XMLSize_t srcLength = std::strlen(toTranscode) + 1; |
44 |
// make safe assumptions on utf-16 size |
44 |
// make safe assumptions on utf-16 size |
45 |
unsigned int maxDestLength = srcLength; |
45 |
XMLSize_t maxDestLength = srcLength; |
46 |
unsigned int charsEaten; |
46 |
XMLSize_t charsEaten; |
47 |
unsigned int destLength; |
47 |
XMLSize_t destLength; |
48 |
unsigned char *charSizes = new unsigned char[maxDestLength]; // just junk |
48 |
unsigned char *charSizes = new unsigned char[maxDestLength]; // just junk |
49 |
// make a buffer - size does not matter - the object is temporary |
49 |
// make a buffer - size does not matter - the object is temporary |
50 |
xmlString = new XMLCh[maxDestLength]; |
50 |
xmlString = new XMLCh[maxDestLength]; |