Skip to content

Commit

Permalink
camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
chreekat committed Sep 30, 2023
1 parent 1db3735 commit 11280ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Data/Text/Internal/Reverse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ reversePoints
-> A.MArray s -- ^ Output array
-> Int -- ^ Output index
-> ST s ()
reversePoints _ _ _ p_out | p_out < 0 = pure ()
reversePoints ba p_in dest p_out =
let pointLength = utf8LengthByLeader (A.unsafeIndex ba p_in)
reversePoints _ _ _ pOut | pOut < 0 = pure ()
reversePoints src pIn dest pOut =
let pointLength = utf8LengthByLeader (A.unsafeIndex src pIn)
in do
A.copyI pointLength dest (p_out - pointLength + 1) ba p_in
reversePoints ba (p_in + pointLength) dest (p_out - pointLength)
A.copyI pointLength dest (pOut - pointLength + 1) src pIn
reversePoints src (pIn + pointLength) dest (pOut - pointLength)
#else
reverse (Text (A.ByteArray ba) off len) = runST $ do
marr@(A.MutableByteArray mba) <- A.new len
Expand Down

0 comments on commit 11280ba

Please sign in to comment.