qbs* FUNC_ANSITEXTTOUTF8TEXT(qbs*_FUNC_ANSITEXTTOUTF8TEXT_STRING_TEXT){
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 "data466.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;
do{
qbs_set(_FUNC_ANSITEXTTOUTF8TEXT_STRING_UTF,qbs_new_txt_len("",0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,679,"ide_export.bas");}while(r);
S_70786:;
fornext_value8189= 1 ;
fornext_finalvalue8189=_FUNC_ANSITEXTTOUTF8TEXT_STRING_TEXT->len;
fornext_step8189= 1 ;
if (fornext_step8189<0) fornext_step_negative8189=1; else fornext_step_negative8189=0;
if (is_error_pending()) goto fornext_error8189;
goto fornext_entrylabel8189;
while(1){
fornext_value8189=fornext_step8189+(*_FUNC_ANSITEXTTOUTF8TEXT_LONG_CHI);
fornext_entrylabel8189:
*_FUNC_ANSITEXTTOUTF8TEXT_LONG_CHI=fornext_value8189;
qbs_cleanup(qbs_tmp_base,0);
if (fornext_step_negative8189){
if (fornext_value8189<fornext_finalvalue8189) break;
}else{
if (fornext_value8189>fornext_finalvalue8189) break;
}
fornext_error8189:;
if(qbevent){evnt(28182,680,"ide_export.bas");if(r)goto S_70786;}
do{
*_FUNC_ANSITEXTTOUTF8TEXT_INTEGER_ASCII=qbs_asc(_FUNC_ANSITEXTTOUTF8TEXT_STRING_TEXT,*_FUNC_ANSITEXTTOUTF8TEXT_LONG_CHI);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,682,"ide_export.bas");}while(r);
S_70788:;
if ((-(*_FUNC_ANSITEXTTOUTF8TEXT_INTEGER_ASCII> 127 ))||is_error_pending()){
if(qbevent){evnt(28182,683,"ide_export.bas");if(r)goto S_70788;}
do{
*_FUNC_ANSITEXTTOUTF8TEXT_LONG_UNICODE=func__mapunicode(*_FUNC_ANSITEXTTOUTF8TEXT_INTEGER_ASCII);
if(!qbevent)break;evnt(28182,685,"ide_export.bas");}while(r);
S_70790:;
if ((-(*_FUNC_ANSITEXTTOUTF8TEXT_LONG_UNICODE== 0 ))||is_error_pending()){
if(qbevent){evnt(28182,687,"ide_export.bas");if(r)goto S_70790;}
do{
*_FUNC_ANSITEXTTOUTF8TEXT_LONG_UNICODE= 65533 ;
if(!qbevent)break;evnt(28182,687,"ide_export.bas");}while(r);
}
do{
qbs_set(_FUNC_ANSITEXTTOUTF8TEXT_STRING_UTF,qbs_add(_FUNC_ANSITEXTTOUTF8TEXT_STRING_UTF,FUNC_UNICODETOUTF8CHAR(_FUNC_ANSITEXTTOUTF8TEXT_LONG_UNICODE)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,688,"ide_export.bas");}while(r);
}else{
do{
qbs_set(_FUNC_ANSITEXTTOUTF8TEXT_STRING_UTF,qbs_add(_FUNC_ANSITEXTTOUTF8TEXT_STRING_UTF,func_chr(*_FUNC_ANSITEXTTOUTF8TEXT_INTEGER_ASCII)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,691,"ide_export.bas");}while(r);
}
fornext_continue_8188:;
}
fornext_exit_8188:;
do{
qbs_set(_FUNC_ANSITEXTTOUTF8TEXT_STRING_ANSITEXTTOUTF8TEXT,_FUNC_ANSITEXTTOUTF8TEXT_STRING_UTF);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,694,"ide_export.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free466.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_ANSITEXTTOUTF8TEXT_STRING_ANSITEXTTOUTF8TEXT);return _FUNC_ANSITEXTTOUTF8TEXT_STRING_ANSITEXTTOUTF8TEXT;
}
