#runtime "hsp3cl" s="sdfはghききgh" #m […]
#runtime "hsp3cl" s="sdfはghききgh" #m […]
#runtime "hsp3cl"s="sdfはghききgh"#module#defcfunc getBytes str _txttxt=_txtbyteMap=""isSJIS=0repeat strlen(txt)if isSJIS: isSJIS=0: continuebyte=peek(txt,cnt)if 129<=byte&byte<=159 | 224<=byte&byte<=252 {isSJIS=1byteMap+="2"}else {byteMap+="1"}loopreturn byteMap#defcfunc strIndex str _txt,str _byteMap,int indextxt=_txt: byteMap=_byteMapbIndex=-1dim bSizerepeat index+1bSize=int(strmid(byteMap,cnt,1))bIndex+=bSizeloopif bSize=2: bIndex-1return strmid(txt,bIndex,bSize)#globalb=getBytes(s)mes bmes strIndex(s,b,6)