about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-07-30 10:31:11 +0000
committerbors <bors@rust-lang.org>2014-07-30 10:31:11 +0000
commit692077b6431460b96beb0ccf4f38299618d51db2 (patch)
treebe2f2c3376af9a7c40bcdf3b206e7b89d0c7cec1 /src/rustllvm/RustWrapper.cpp
parent774d5eb0b07bdb4d3c853159fbcd265de60e7755 (diff)
parent235bb3fb1f40dcd7da9b4f8996f137589505de8e (diff)
downloadrust-692077b6431460b96beb0ccf4f38299618d51db2.tar.gz
rust-692077b6431460b96beb0ccf4f38299618d51db2.zip
auto merge of #15777 : SimonSapin/rust/pub-ascii-maps, r=alexcrichton
When dealing with HTTP request or responses, many tokens are case-insensitive in the ASCII range but the bytes from the network are not necessarily valid UTF-8.

**[breaking-change]** Rather than adding new very similar traits, this re-uses the `std::ascii::OwnedStrAsciiExt` and `std::ascii::StrAsciiExt` traits, but rename to remove `Str` since that does not apply for bytes.

This PR also makes `std::ascii::ASCII_UPPER_MAP` and `std::ascii::ASCII_LOWER_MAP`, the lookup table all these methods are based on, public. In case there is something else related to ASCII case we haven’t thought of yet, that can be implemented outside of libstd without duplicating the tables.

Although this is a breaking change, I thought this could do without an RFC since the relevant traits are not in the prelude.

r? @alexcrichton
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions