IO_stringPos failed when parsing trimmed string
This commit is contained in:
parent
73e915c35a
commit
08a4da01e0
|
@ -982,6 +982,10 @@ pure function IO_stringPos(string)
|
||||||
if ( string(left:left) == '#' ) exit
|
if ( string(left:left) == '#' ) exit
|
||||||
IO_stringPos = [IO_stringPos,int(left, pInt), int(right, pInt)]
|
IO_stringPos = [IO_stringPos,int(left, pInt), int(right, pInt)]
|
||||||
IO_stringPos(1) = IO_stringPos(1)+1_pInt
|
IO_stringPos(1) = IO_stringPos(1)+1_pInt
|
||||||
|
endOfString: if (right < left) then
|
||||||
|
IO_stringPos(IO_stringPos(1)*2+1) = len_trim(string)
|
||||||
|
exit
|
||||||
|
endif endOfString
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
end function IO_stringPos
|
end function IO_stringPos
|
||||||
|
|
Loading…
Reference in New Issue