qbs* FUNC_UNICODETOUTF8CHAR(int32*_FUNC_UNICODETOUTF8CHAR_LONG_UNICODE){
qbs *tqbs;
ptrszint tmp_long;
int32 tmp_fileno;
uint32 qbs_tmp_base=qbs_tmp_list_nexti;
uint8 *tmp_mem_static_pointer=mem_static_pointer;
uint32 tmp_cmem_sp=cmem_sp;
#include "data465.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
libqb_check_stack();
if (is_error_pending()) goto exit_subfunc;
S_70765:;
if ((-(*_FUNC_UNICODETOUTF8CHAR_LONG_UNICODE< 128 ))||is_error_pending()){
if(qbevent){evnt(28182,659,"ide_export.bas");if(r)goto S_70765;}
do{
qbs_set(_FUNC_UNICODETOUTF8CHAR_STRING_UNICODETOUTF8CHAR,func_chr(*_FUNC_UNICODETOUTF8CHAR_LONG_UNICODE));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,661,"ide_export.bas");}while(r);
}else{
do{
qbs_set(_FUNC_UNICODETOUTF8CHAR_STRING_UTF,qbs_new_txt_len("",0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,664,"ide_export.bas");}while(r);
do{
*_FUNC_UNICODETOUTF8CHAR_LONG_UC=*_FUNC_UNICODETOUTF8CHAR_LONG_UNICODE;
if(!qbevent)break;evnt(28182,664,"ide_export.bas");}while(r);
do{
*_FUNC_UNICODETOUTF8CHAR_INTEGER_FIRST= 128 ;
if(!qbevent)break;evnt(28182,665,"ide_export.bas");}while(r);
do{
*_FUNC_UNICODETOUTF8CHAR_INTEGER_REMAIN= 63 ;
if(!qbevent)break;evnt(28182,665,"ide_export.bas");}while(r);
S_70772:;
do{
if(qbevent){evnt(28182,666,"ide_export.bas");if(r)goto S_70772;}
do{
*_FUNC_UNICODETOUTF8CHAR_INTEGER_FIRST= 128 |(qb_safe_idiv(*_FUNC_UNICODETOUTF8CHAR_INTEGER_FIRST, 2 ));
if(!qbevent)break;evnt(28182,667,"ide_export.bas");}while(r);
do{
*_FUNC_UNICODETOUTF8CHAR_INTEGER_REMAIN=(qb_safe_idiv(*_FUNC_UNICODETOUTF8CHAR_INTEGER_REMAIN, 2 ));
if(!qbevent)break;evnt(28182,667,"ide_export.bas");}while(r);
do{
*_FUNC_UNICODETOUTF8CHAR_INTEGER_CONTI= 128 |(*_FUNC_UNICODETOUTF8CHAR_LONG_UC& 63 );
if(!qbevent)break;evnt(28182,668,"ide_export.bas");}while(r);
do{
*_FUNC_UNICODETOUTF8CHAR_LONG_UC=qb_safe_idiv(*_FUNC_UNICODETOUTF8CHAR_LONG_UC, 64 );
if(!qbevent)break;evnt(28182,668,"ide_export.bas");}while(r);
do{
qbs_set(_FUNC_UNICODETOUTF8CHAR_STRING_UTF,qbs_add(func_chr(*_FUNC_UNICODETOUTF8CHAR_INTEGER_CONTI),_FUNC_UNICODETOUTF8CHAR_STRING_UTF));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,669,"ide_export.bas");}while(r);
S_70778:;
if ((-(*_FUNC_UNICODETOUTF8CHAR_LONG_UC<=*_FUNC_UNICODETOUTF8CHAR_INTEGER_REMAIN))||is_error_pending()){
if(qbevent){evnt(28182,670,"ide_export.bas");if(r)goto S_70778;}
do{
*_FUNC_UNICODETOUTF8CHAR_INTEGER_FIRST=(*_FUNC_UNICODETOUTF8CHAR_INTEGER_FIRST|*_FUNC_UNICODETOUTF8CHAR_LONG_UC);
if(!qbevent)break;evnt(28182,671,"ide_export.bas");}while(r);
do{
*_FUNC_UNICODETOUTF8CHAR_LONG_UC= 0 ;
if(!qbevent)break;evnt(28182,671,"ide_export.bas");}while(r);
}
S_70782:;
dl_continue_8186:;
}while((!(-(*_FUNC_UNICODETOUTF8CHAR_LONG_UC== 0 )))&&(!is_error_pending()));
dl_exit_8186:;
if(qbevent){evnt(28182,673,"ide_export.bas");if(r)goto S_70782;}
do{
qbs_set(_FUNC_UNICODETOUTF8CHAR_STRING_UNICODETOUTF8CHAR,qbs_add(func_chr(*_FUNC_UNICODETOUTF8CHAR_INTEGER_FIRST),_FUNC_UNICODETOUTF8CHAR_STRING_UTF));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,674,"ide_export.bas");}while(r);
}
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free465.txt"
if ((tmp_mem_static_pointer>=mem_static)&&(tmp_mem_static_pointer<=mem_static_limit)) mem_static_pointer=tmp_mem_static_pointer; else mem_static_pointer=mem_static;
cmem_sp=tmp_cmem_sp;
qbs_maketmp(_FUNC_UNICODETOUTF8CHAR_STRING_UNICODETOUTF8CHAR);return _FUNC_UNICODETOUTF8CHAR_STRING_UNICODETOUTF8CHAR;
}
