Thread View: cn.bbs.comp.xml
1 messages
1 total messages
Started by <Test/>
Sat, 01 Jan 2011 01:29
Re: xerces-C++��XmlCh��˫�ֽڵģ�����unixƽ̨��wchar_t��4�ֽڵ�
Author: <Test/>
Date: Sat, 01 Jan 2011 01:29
Date: Sat, 01 Jan 2011 01:29
38 lines
1803 bytes
1803 bytes
int byte2_to_byte4(char* src, char* des)
{
if(NULL == src || NULL == des)
return -1;
int flag = 0;
int n = 0;
while(2 != flag)
{
*des = *src;
if(0 == *des)
flag ++;
else if(0 != flag)
flag = 0;
des++;
src++;
n++;
//ע����С�˻�����
if(0 == n%2)
{
*des++ = 0;
*des++ = 0;
}
}
return 0;
}
�� �� daishu59 (daishu59) �Ĵ������ᵽ: ��
: ����solarisƽ̨��ʹ��xerces-C++�����֣�xerces�Զ����XmlCh��˫�ֽ�short,��
ƽ̨�ϵ�wchar_t��4���ֽڵ�,����ֱ���á������char�Ļ�
: XMLPlatformUtils::Initialize();
: XMLCh nameStr[100]="abc";
: ...................
--
[1;36mHappy XMLing
[m[32m�� ��Դ:��ˮľ���� http://newsmth.net��[FROM: 114.249.209.*][m
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads