equal
deleted
inserted
replaced
1214 fn th => eq_set(t_consts,add_consts(prop_of th,[])) |
1214 fn th => eq_set(t_consts,add_consts(prop_of th,[])) |
1215 end |
1215 end |
1216 |
1216 |
1217 fun split_name str = |
1217 fun split_name str = |
1218 let |
1218 let |
1219 val sub = Substring.all str |
1219 val sub = Substring.full str |
1220 val (f,idx) = apsnd Substring.string (Substring.splitr Char.isDigit sub) |
1220 val (f,idx) = apsnd Substring.string (Substring.splitr Char.isDigit sub) |
1221 val (newstr,u) = apboth Substring.string (Substring.splitr (fn c => c = #"_") f) |
1221 val (newstr,u) = apboth Substring.string (Substring.splitr (fn c => c = #"_") f) |
1222 in |
1222 in |
1223 if not (idx = "") andalso u = "_" |
1223 if not (idx = "") andalso u = "_" |
1224 then SOME (newstr,valOf(Int.fromString idx)) |
1224 then SOME (newstr,valOf(Int.fromString idx)) |