Пример #1
0
void xstring_gbk_to_utf8(XScriptVM* vm)
{
	CheckParam(string.gbktoutf8, 0, value, OP_TYPE_STRING);

	char* result = GBKToUtf8(stringRawValue(&value));
	vm->setReturnAsStr(result);
	delete[] result;
}
Пример #2
0
girl_info* dlg_girls::get_edits()
{
	girl_info* info = new girl_info();
	CString temp;
	GetDlgItemText(IDC_EDIT_CARD, temp);
	info->card_ = temp;
	GetDlgItemText(IDC_EDIT_NAME, temp);
	temp = GBKToUtf8(temp);
	info->name_ = temp;
	GetDlgItemText(IDC_EDIT_ADDR, temp);
	temp = GBKToUtf8(temp);
	info->addr_ = temp;
	GetDlgItemText(IDC_EDIT_PHONE_NUMBER, temp);
	temp = GBKToUtf8(temp);
	info->phone_number_ = temp;
	GetDlgItemText(IDC_EDIT_BANK_CARD, temp);
	temp = GBKToUtf8(temp);
	info->bank_card_ = temp;
	info->score_ = GetDlgItemInt(IDC_EDIT_SCORE);
	info->performance_ = GetDlgItemInt(IDC_EDIT_PERFORMANCE);
	info->bonus_ = GetDlgItemInt(IDC_EDIT_BONUS);	
	return info;
}