This project is mirrored from https://github.com/haskell/text. Pull mirroring updated .
  1. 08 Jan, 2014 4 commits
  2. 07 Jan, 2014 25 commits
  3. 03 Jan, 2014 3 commits
    • Simon Meier's avatar
      Add back 'ensure 1' to avoid overflowing an output buffer · 22dc447b
      Simon Meier authored
      The counter-example for the existing code is a string of length '2*n' that
      starts with 'n' characters with codepoints in the range (0x7F, 0x7FF) and ends
      with 'n' ASCII characters. All 'n' ASCII characters will be written after the
      end of the output buffer.
      22dc447b
    • Simon Meier's avatar
      Polish UTF-8 bytestring builder support · 3e915b23
      Simon Meier authored
      - adjust function names to 'encodeUtf8Builder' and 'encodeUtf8BuilderEscaped'
      - expose the same conversion to builders for both lazy and strict text
      - ensure 'Escaped' versions are inlined to allow specialization for specific
        escaping primitives
      - fix some Haddock references
      - add Haddock comment about bytestring >= 0.10.4.0 dependency
      - remove stream-to-builder encoding functions. There is no direct use case for
        them and they require too much knowledge about the internals to be used
        correctly.
      3e915b23
    • bos's avatar
      Drop some special-casing for ASCII during UTF-8 encoding · 0f3435ba
      bos authored
      I somehow forgot that we allocate the initial ByteString to contain
      the same number of bytes as the Text contains code units. This means
      that we never need to ensure that the ByteString is big enough, nor
      (with this observation) does a special-cased ASCII-only loop help
      performance.
      0f3435ba
  4. 02 Jan, 2014 1 commit
  5. 31 Dec, 2013 2 commits
  6. 30 Dec, 2013 5 commits