std: Rename str::Normalizations to str::Decompositions
The Normalizations iterator has been renamed to Decompositions. It does not currently include all forms of Unicode normalization, but only encompasses decompositions. If implemented recomposition would likely be a separate iterator which works on the result of this one. [breaking-change]
This commit is contained in:
parent
8c54d5bf40
commit
df802a2754
5 changed files with 26 additions and 26 deletions
|
|
@ -30,9 +30,9 @@ use iter::{Iterator, range_step};
|
|||
use unicode::{derived_property, property, general_category, conversions};
|
||||
|
||||
/// Returns the canonical decomposition of a character.
|
||||
pub use unicode::decompose::decompose_canonical;
|
||||
pub use unicode::normalization::decompose_canonical;
|
||||
/// Returns the compatibility decomposition of a character.
|
||||
pub use unicode::decompose::decompose_compatible;
|
||||
pub use unicode::normalization::decompose_compatible;
|
||||
|
||||
#[cfg(not(test))] use cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering};
|
||||
#[cfg(not(test))] use default::Default;
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ pub mod general_category {
|
|||
|
||||
}
|
||||
|
||||
pub mod decompose {
|
||||
pub mod normalization {
|
||||
use option::Option;
|
||||
use option::{Some, None};
|
||||
use slice::ImmutableVector;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue