diff options
| author | bors <bors@rust-lang.org> | 2014-11-21 23:16:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-11-21 23:16:48 +0000 |
| commit | 81eeec0941f936f0f3de881c3991a74f32fe0625 (patch) | |
| tree | ce9f2391bdab7d078dc510d7572a3116d4dbf44c /src/rustllvm/RustWrapper.cpp | |
| parent | cd7584743710aa2355eb7e09146fea7c338a27e5 (diff) | |
| parent | 75ffadf8b65495ababae49d8162f85c58cd2c2a9 (diff) | |
| download | rust-81eeec0941f936f0f3de881c3991a74f32fe0625.tar.gz rust-81eeec0941f936f0f3de881c3991a74f32fe0625.zip | |
auto merge of #18603 : brson/rust/stdchar, r=aturon
* Deprecate the free functions in favor of methods, except the two ctors `from_u32` and `from_digit`, whose methods are deprecated. * Mark the `Char` and `UnicodeChar` traits experimental until we decide for sure that we won't have some sort of inherent methods for primitives. * The `UnicodeChar` methods related to numerics are now called e.g. `is_numeric` to match the 'numeric' unicode character class, and the `*_digit_radix` methods on `Char` now just called `*_digit`. * `len_utf8_bytes` -> `len_utf8` * Converted methods to take self by-value * Converted `escape_default` and `escape_unicode` to iterators over chars. * Renamed `is_XID_start`, `is_XID_continue` to `is_xid_start`, `is_xid_continue` to match conventions This also converts `encode_utf8` and `encode_utf16` to return iterators. I suspect this is not the final form of these methods. Perf is worse (numbers in the commit). Many of the uses ended up being awkward, copying into a buffer then writing that buffer to a `Writer`. It might be more appropriate for these to return `Reader`s instead, but that type is defined in `std`. Note: although I *did* add the `from_u32` ctor to the `Char` trait, I deprecated it again later, preferring the free ctors. I've been sitting on this for a while. cc @aturon
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
