rust/src/libunicode
Brian Anderson a4b354ca02 core: Add binary_search and binary_search_elem methods to slices.
These are like the existing bsearch methods but if the search fails,
it returns the next insertion point.

The new `binary_search` returns a `BinarySearchResult` that is either
`Found` or `NotFound`. For convenience, the `found` and `not_found`
methods convert to `Option`, ala `Result`.

Deprecate bsearch and bsearch_elem.
2014-08-13 11:30:15 -07:00
..
lib.rs collections, unicode: Add support for NFC and NFKC 2014-07-28 18:47:38 +02:00
normalize.rs core: Add binary_search and binary_search_elem methods to slices. 2014-08-13 11:30:15 -07:00
tables.rs core: Add binary_search and binary_search_elem methods to slices. 2014-08-13 11:30:15 -07:00
u_char.rs Add libunicode; move unicode functions from core 2014-07-07 14:52:24 -04:00
u_str.rs auto merge of #15867 : cmr/rust/rewrite-lexer4, r=alexcrichton 2014-07-22 07:16:17 +00:00