File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ def generate_script_impl(f):
297297 #[inline]
298298 pub(crate) fn inner_short_name(self) -> &'static str {
299299 match self {
300- Script::Unknown => "",
300+ Script::Unknown => "Zzzz ",
301301 Script::Common => "Zyyy",
302302 Script::Inherited => "Zinh",
303303""" )
@@ -312,6 +312,7 @@ def generate_script_impl(f):
312312 #[inline]
313313 pub(crate) fn inner_from_short_name(input: &str) -> Option<Self> {
314314 match input {
315+ "Zzzz" => Some(Script::Unknown),
315316 "Zyyy" => Some(Script::Common),
316317 "Zinh" => Some(Script::Inherited),
317318""" )
Original file line number Diff line number Diff line change @@ -1598,7 +1598,7 @@ impl Script {
15981598 #[ inline]
15991599 pub ( crate ) fn inner_short_name ( self ) -> & ' static str {
16001600 match self {
1601- Script :: Unknown => "" ,
1601+ Script :: Unknown => "Zzzz " ,
16021602 Script :: Common => "Zyyy" ,
16031603 Script :: Inherited => "Zinh" ,
16041604 Script :: Adlam => "Adlm" ,
@@ -1775,6 +1775,7 @@ impl Script {
17751775 #[ inline]
17761776 pub ( crate ) fn inner_from_short_name ( input : & str ) -> Option < Self > {
17771777 match input {
1778+ "Zzzz" => Some ( Script :: Unknown ) ,
17781779 "Zyyy" => Some ( Script :: Common ) ,
17791780 "Zinh" => Some ( Script :: Inherited ) ,
17801781 "Adlm" => Some ( Script :: Adlam ) ,
You can’t perform that action at this time.
0 commit comments