Skip to content

Commit ef5435d

Browse files
committed
add function get first numeric offset
1 parent 56f6eab commit ef5435d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/services/GraphsDFG.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,12 @@ function sortnestedperm(strs::Vector{<:AbstractString}; delim='_')
378378
return sp1[sp2]
379379
end
380380

381+
function getFirstNumericalOffset(st::AS) where AS <: AbstractString
382+
i = 1
383+
while !allnums(st[i:i]) i+=1; end
384+
return i
385+
end
386+
381387
"""
382388
$SIGNATURES
383389

0 commit comments

Comments
 (0)