File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
components/properties/src Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,6 @@ pub enum BidiPairedBracketType {
7171#[ cfg( feature = "unicode_bidi" ) ]
7272use crate :: props:: BidiClass ;
7373
74- /// Implements [`unicode_bidi::BidiDataSource`] on [`CodePointMapDataBorrowed<BidiClass>`](crate::CodePointMapDataBorrowed).
75- ///
7674/// ✨ *Enabled with the `unicode_bidi` Cargo feature.*
7775///
7876/// # Examples
Original file line number Diff line number Diff line change @@ -905,6 +905,26 @@ impl Script {
905905 pub const Chisoi : Script = Self ( 254 ) ;
906906}
907907
908+ /// ✨ *Enabled with the `compiled_data` Cargo feature.*
909+ #[ cfg( feature = "compiled_data" ) ]
910+ impl From < Script > for icu_locale_core:: subtags:: Script {
911+ fn from ( value : Script ) -> Self {
912+ crate :: PropertyNamesShort :: new ( )
913+ . get_locale_script ( value)
914+ . unwrap_or ( icu_locale_core:: subtags:: script!( "Zzzz" ) )
915+ }
916+ }
917+
918+ /// ✨ *Enabled with the `compiled_data` Cargo feature.*
919+ #[ cfg( feature = "compiled_data" ) ]
920+ impl From < icu_locale_core:: subtags:: Script > for Script {
921+ fn from ( value : icu_locale_core:: subtags:: Script ) -> Self {
922+ crate :: PropertyParser :: new ( )
923+ . get_strict ( value. as_str ( ) )
924+ . unwrap_or ( Self :: Unknown )
925+ }
926+ }
927+
908928make_enumerated_property ! {
909929 name: "Script" ;
910930 short_name: "sc" ;
You can’t perform that action at this time.
0 commit comments