qbs* FUNC_STRIPDISCORDANSI(qbs*_FUNC_STRIPDISCORDANSI_STRING_CLIP){
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 "data464.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_STRIPDISCORDANSI_STRING_TEMP,_FUNC_STRIPDISCORDANSI_STRING_CLIP);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,640,"ide_export.bas");}while(r);
S_70747:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal((qbs_left(_FUNC_STRIPDISCORDANSI_STRING_TEMP, 9 )),(qbs_add(qbs_add(qbs_new_txt_len("```ansi",7),func_chr( 13 )),func_chr( 10 ))))))||is_error_pending()){
if(qbevent){evnt(28182,642,"ide_export.bas");if(r)goto S_70747;}
do{
qbs_set(_FUNC_STRIPDISCORDANSI_STRING_TEMP,func_mid(_FUNC_STRIPDISCORDANSI_STRING_TEMP, 10 ,NULL,0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,642,"ide_export.bas");}while(r);
}
S_70750:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal((qbs_left(_FUNC_STRIPDISCORDANSI_STRING_TEMP, 8 )),(qbs_add(qbs_new_txt_len("```ansi",7),func_chr( 10 ))))))||is_error_pending()){
if(qbevent){evnt(28182,643,"ide_export.bas");if(r)goto S_70750;}
do{
qbs_set(_FUNC_STRIPDISCORDANSI_STRING_TEMP,func_mid(_FUNC_STRIPDISCORDANSI_STRING_TEMP, 9 ,NULL,0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,643,"ide_export.bas");}while(r);
}
do{
qbs_set(_FUNC_STRIPDISCORDANSI_STRING_TEMP,FUNC_STRREMOVE(_FUNC_STRIPDISCORDANSI_STRING_TEMP,qbs_add(func_chr( 27 ),qbs_new_txt_len("[0;0;1;37m",10))));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,645,"ide_export.bas");}while(r);
do{
qbs_set(_FUNC_STRIPDISCORDANSI_STRING_TEMP,FUNC_STRREMOVE(_FUNC_STRIPDISCORDANSI_STRING_TEMP,qbs_add(func_chr( 27 ),qbs_new_txt_len("[0;0;1;38m",10))));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,646,"ide_export.bas");}while(r);
S_70755:;
fornext_value8183= 0 ;
fornext_finalvalue8183= 8 ;
fornext_step8183= 1 ;
if (fornext_step8183<0) fornext_step_negative8183=1; else fornext_step_negative8183=0;
if (is_error_pending()) goto fornext_error8183;
goto fornext_entrylabel8183;
while(1){
fornext_value8183=fornext_step8183+(*_FUNC_STRIPDISCORDANSI_INTEGER_I);
fornext_entrylabel8183:
*_FUNC_STRIPDISCORDANSI_INTEGER_I=fornext_value8183;
if (fornext_step_negative8183){
if (fornext_value8183<fornext_finalvalue8183) break;
}else{
if (fornext_value8183>fornext_finalvalue8183) break;
}
fornext_error8183:;
if(qbevent){evnt(28182,647,"ide_export.bas");if(r)goto S_70755;}
do{
qbs_set(_FUNC_STRIPDISCORDANSI_STRING_TEMP,FUNC_STRREMOVE(_FUNC_STRIPDISCORDANSI_STRING_TEMP,qbs_add(qbs_add(qbs_add(func_chr( 27 ),qbs_new_txt_len("[3",2)),qbs__tostr((int16)(*_FUNC_STRIPDISCORDANSI_INTEGER_I),NULL,0)),qbs_new_txt_len("m",1))));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,648,"ide_export.bas");}while(r);
fornext_continue_8182:;
}
fornext_exit_8182:;
S_70758:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal((qbs_right(_FUNC_STRIPDISCORDANSI_STRING_TEMP, 5 )),(qbs_add(qbs_add(qbs_new_txt_len("```",3),func_chr( 13 )),func_chr( 10 ))))))||is_error_pending()){
if(qbevent){evnt(28182,651,"ide_export.bas");if(r)goto S_70758;}
do{
qbs_set(_FUNC_STRIPDISCORDANSI_STRING_TEMP,qbs_left(_FUNC_STRIPDISCORDANSI_STRING_TEMP,_FUNC_STRIPDISCORDANSI_STRING_TEMP->len- 5 ));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,651,"ide_export.bas");}while(r);
}
S_70761:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal((qbs_right(_FUNC_STRIPDISCORDANSI_STRING_TEMP, 4 )),(qbs_add(qbs_new_txt_len("```",3),func_chr( 10 ))))))||is_error_pending()){
if(qbevent){evnt(28182,652,"ide_export.bas");if(r)goto S_70761;}
do{
qbs_set(_FUNC_STRIPDISCORDANSI_STRING_TEMP,qbs_left(_FUNC_STRIPDISCORDANSI_STRING_TEMP,_FUNC_STRIPDISCORDANSI_STRING_TEMP->len- 4 ));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,652,"ide_export.bas");}while(r);
}
do{
qbs_set(_FUNC_STRIPDISCORDANSI_STRING_STRIPDISCORDANSI,_FUNC_STRIPDISCORDANSI_STRING_TEMP);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,654,"ide_export.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free464.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_STRIPDISCORDANSI_STRING_STRIPDISCORDANSI);return _FUNC_STRIPDISCORDANSI_STRING_STRIPDISCORDANSI;
}
