Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add method to return ISO15924 tag asu32#24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Manishearth merged 2 commits intounicode-rs:masterfromnicoburns:iso15924-tag
Aug 15, 2025

Conversation

@nicoburns
Copy link
Contributor

@nicoburnsnicoburns commentedAug 15, 2025
edited
Loading

Theshort_name is always 4 ascii bytes, so it's convenient to be able to access it as au32.

Signed-off-by: Nico Burns <nico@nicoburns.com>
src/lib.rs Outdated
Self::inner_from_short_name(input)
}

/// The 4-byte iso15924 tag as a `u32`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

nit: document as big-endian?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Done!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

nit: document as big-endian?

Might be a stupid question, but doesn'tu32::from_be_bytes convert to a native endian u32?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Hmm... yeah I think so. Perhaps this API ought return[u8; 4] to avoid ambiguity.

Signed-off-by: Nico Burns <nico@nicoburns.com>
@ManishearthManishearth merged commit1ad9b49 intounicode-rs:masterAug 15, 2025
3 checks passed
@nicoburns
Copy link
ContributorAuthor

@Manishearth Any chance of a release with these changes?

github-merge-queuebot pushed a commit to servo/servo that referenced this pull requestAug 18, 2025
…t for harfbuzz (#38704)Replaces a big match statement with a call to `unicode_script`'s`Script::short_name` method which has the same big match statement. Wespecial case `Script::Unknown` because the `short_name` method returnsempty string for that variant, but harfbuzz represents it with `Zzzz`.EDIT: `Zzzz` seems to be in the spec so I've sent a PR to`unicode_script` to use it:unicode-rs/unicode-script#23EDIT: Andunicode-rs/unicode-script#24 whichwould allow us to remove this method entirely.Signed-off-by: Nico Burns <nico@nicoburns.com>
PotatoCP pushed a commit to PotatoCP/servo that referenced this pull requestAug 20, 2025
…t for harfbuzz (servo#38704)Replaces a big match statement with a call to `unicode_script`'s`Script::short_name` method which has the same big match statement. Wespecial case `Script::Unknown` because the `short_name` method returnsempty string for that variant, but harfbuzz represents it with `Zzzz`.EDIT: `Zzzz` seems to be in the spec so I've sent a PR to`unicode_script` to use it:unicode-rs/unicode-script#23EDIT: Andunicode-rs/unicode-script#24 whichwould allow us to remove this method entirely.Signed-off-by: Nico Burns <nico@nicoburns.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ManishearthManishearthManishearth approved these changes

+1 more reviewer

@jschwejschwejschwe left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@nicoburns@Manishearth@jschwe

[8]ページ先頭

©2009-2025 Movatter.jp