Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: string overhaul #24439

Closed
wants to merge 39 commits into from
Closed

wip: string overhaul #24439

wants to merge 39 commits into from

Commits on Dec 8, 2017

  1. Configuration menu
    Copy the full SHA
    1917811 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    80cb480 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    40ac089 View commit details
    Browse the repository at this point in the history
  4. iswellformed(c::Char) to test if c represents a code point

    This allows testing before attempting to decode `c` which we use
    in a number of places to handle malformed UTF-8 data correctly.
    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    8ba3bba View commit details
    Browse the repository at this point in the history
  5. remove internal chomp! function

    this function was always dangerous and has been equivalent to `chomp`
    since the `String` representation change introduced in Julia 0.6
    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    2aa2c8c View commit details
    Browse the repository at this point in the history
  6. convert(String, ::Vector{Char}): don't normalize surrogate pairs

    we're in a new era where Julia tries as hard as it can to pass text
    data through intact rather than trying to guess what you meant. to
    that end, when converting a vector of characters to a `String` we
    no longer detect and combine surrogate pairs. there can be a utility
    function to do that kind of normalization on strings, but it's not
    the job of the basic string code.
    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    806441e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5ab5eef View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    08656a3 View commit details
    Browse the repository at this point in the history
  9. iswellformed => !ismalformed; make test stricter

    despite generally trying to avoid double negatives, it seems that
    "malformed" is the clearer and more common concept to test for here.
    it was also a bit confusing to have `MalformedCharError` but then
    have `iswellformed` as the predicate instead of `ismalformed`.
    
    testing for well-formedness more strictly doesn't seem to add too
    much complexity here; if performance becomes an issue, we'll need a
    `@inbounds`-like annotation anyway.
    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    b8f7306 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    747ce23 View commit details
    Browse the repository at this point in the history
  11. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    d1e83e8 View commit details
    Browse the repository at this point in the history
  12. wip [ci skip]

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    1972d46 View commit details
    Browse the repository at this point in the history
  13. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    0024056 View commit details
    Browse the repository at this point in the history
  14. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    a84e666 View commit details
    Browse the repository at this point in the history
  15. Revert "wip"

    This reverts commit bc7f25d83165fe4be209d6485406604c762930dd.
    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    358ce5d View commit details
    Browse the repository at this point in the history
  16. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    912779e View commit details
    Browse the repository at this point in the history
  17. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    cbbee08 View commit details
    Browse the repository at this point in the history
  18. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    8a22a96 View commit details
    Browse the repository at this point in the history
  19. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    829aba2 View commit details
    Browse the repository at this point in the history
  20. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    b2d231b View commit details
    Browse the repository at this point in the history
  21. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    f82c793 View commit details
    Browse the repository at this point in the history
  22. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    c55cca0 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    68467ad View commit details
    Browse the repository at this point in the history
  24. wip [ci skip]

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    29dc1c3 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    d68eb07 View commit details
    Browse the repository at this point in the history
  26. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    2fadfb0 View commit details
    Browse the repository at this point in the history
  27. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    5aad731 View commit details
    Browse the repository at this point in the history
  28. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    cad41c5 View commit details
    Browse the repository at this point in the history
  29. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    f849593 View commit details
    Browse the repository at this point in the history
  30. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    61dbb90 View commit details
    Browse the repository at this point in the history
  31. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    931b289 View commit details
    Browse the repository at this point in the history
  32. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    0794487 View commit details
    Browse the repository at this point in the history
  33. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    b674bc1 View commit details
    Browse the repository at this point in the history
  34. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    b802606 View commit details
    Browse the repository at this point in the history
  35. fix [ci skip]

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    8d414fd View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    120f9ca View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    1861238 View commit details
    Browse the repository at this point in the history
  38. cosmetic tweaks

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    1c722f1 View commit details
    Browse the repository at this point in the history
  39. wip

    StefanKarpinski committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    e54e4c0 View commit details
    Browse the repository at this point in the history