about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-07-15 22:51:17 +0000
committerbors <bors@rust-lang.org>2014-07-15 22:51:17 +0000
commit2692ae1ddde62a3fc01d58220656c5ae32605959 (patch)
tree177c501fc844e47263638c7c6b70c4207ede89f0 /src/rustllvm/ExecutionEngineWrapper.cpp
parentde111e69a89c15e77f5f0c49c2f6ab4c25aa89c1 (diff)
parentcf432b8f8f0d8822e654c1a40bf632f12fc97fbc (diff)
downloadrust-2692ae1ddde62a3fc01d58220656c5ae32605959.tar.gz
rust-2692ae1ddde62a3fc01d58220656c5ae32605959.zip
auto merge of #15619 : kwantam/rust/master, r=huonw
- `width()` computes the displayed width of a string, ignoring the width of control characters.
    - arguably we might do *something* else for control characters, but the question is, what?
    - users who want to do something else can iterate over chars()

- `graphemes()` returns a `Graphemes` struct, which implements an iterator over the grapheme clusters of a &str.
    - fully compliant with [UAX#29](http://www.unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries)
    - passes all [Unicode-supplied tests](http://www.unicode.org/reports/tr41/tr41-15.html#Tests29)

- added code to generate additionial categories in `unicode.py`
    - `Cn` aka `Not_Assigned`
    - categories necessary for grapheme cluster breaking

- tidied up the exports from libunicode
  - all exports are exposed through a module rather than directly at crate root.
  - std::prelude imports UnicodeChar and UnicodeStrSlice from std::char and std::str rather than directly from libunicode

closes #7043
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions