equal
deleted
inserted
replaced
242 | no_syms (c :: cs) = ord c < enc_start andalso no_syms cs; |
242 | no_syms (c :: cs) = ord c < enc_start andalso no_syms cs; |
243 |
243 |
244 fun sym_explode str = |
244 fun sym_explode str = |
245 let val chs = explode str in |
245 let val chs = explode str in |
246 if no_syms chs then chs (*tune trivial case*) |
246 if no_syms chs then chs (*tune trivial case*) |
247 else map symbol (#1 (Scan.error (Scan.finite stopper (Scan.repeat scan)) chs)) |
247 else map symbol (the (Scan.read stopper (Scan.repeat scan) chs)) |
248 end; |
248 end; |
249 |
249 |
250 |
250 |
251 (* printable length *) |
251 (* printable length *) |
252 |
252 |