// Copyright 2015 The Servo Project Developers. // Copyright 2017 The UNIC Project Developers. // // See the COPYRIGHT file at the top-level directory of this distribution. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. #![forbid(unsafe_code)] use unic::normal::StrNormalForm; use unic::ucd::normal::compose; fn main() { assert_eq!(compose('A', '\u{30a}'), Some('Å')); let s = "ÅΩ"; let c = s.nfc().collect::(); assert_eq!(c, "ÅΩ"); }