Changeset 3004
- Timestamp:
- 05/12/05 03:50:34 (4 years ago)
- svk:copy_cache_prev:
- 4536
- Files:
-
- 1 modified
-
src/Pugs/Prim/Match.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/Match.hs
r2992 r3004 47 47 if isNothing rv then return mkMatchFail else do 48 48 let ((fromBytes, lenBytes):subs) = Array.elems (fromJust rv) 49 substr str from len = genericTake len (genericDrop from str)49 substr str from len = take len (drop from str) 50 50 subsMatch = [ 51 51 VMatch $ mkMatchOk … … 54 54 [] Map.empty 55 55 | (fBytes, lBytes) <- subs 56 , let fChars = chars $ genericTake fBytes csBytes56 , let fChars = chars $ take fBytes csBytes 57 57 , let lChars = chars $ substr csBytes fBytes lBytes 58 58 ] 59 fromChars = chars $ genericTake fromBytes csBytes59 fromChars = chars $ take fromBytes csBytes 60 60 lenChars = chars $ substr csBytes fromBytes lenBytes 61 61 chars = genericLength . decodeUTF8
