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

Commitc992130

Browse files
authored
Merge pull request#103 from Marcondiro/master
Update Unicode to version 16.0.0, bump to 0.1.24
2 parents79687ca +0a95cae commitc992130

File tree

6 files changed

+12527
-6054
lines changed

6 files changed

+12527
-6054
lines changed

‎.github/workflows/rust.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,9 @@ jobs:
6767
steps:
6868
-uses:actions/checkout@v2
6969
-name:Install msrv toolchain
70-
uses:actions-rs/toolchain@v1
71-
with:
72-
toolchain:1.36
73-
override:true
70+
uses:dtolnay/rust-toolchain@1.36.0
71+
-name:Use tinyvec 1.6.0
72+
run:cargo update -p tinyvec --precise 1.6.0
7473
-name:Build
7574
run:cargo build --verbose --all-features
7675
regen:

‎Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name ="unicode-normalization"
4-
version ="0.1.23"
4+
version ="0.1.24"
55
authors = [
66
"kwantam <kwantam@gmail.com>",
77
"Manish Goregaokar <manishsmail@gmail.com>",

‎scripts/unicode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
importurllib.request
2323
fromitertoolsimportbatched
2424

25-
UNICODE_VERSION="15.1.0"
25+
UNICODE_VERSION="16.0.0"
2626
UCD_URL="https://www.unicode.org/Public/%s/ucd/"%UNICODE_VERSION
2727

2828
PREAMBLE="""// Copyright 2012-2018 The Rust Project Developers. See the COPYRIGHT
@@ -388,7 +388,7 @@ def gen_composition_table(canon_comp, out):
388388
out.write("pub(crate) fn composition_table_astral(c1: char, c2: char) -> Option<char> {\n")
389389
out.write(" match (c1, c2) {\n")
390390
for (c1,c2),c3insorted(canon_comp.items()):
391-
ifc1>=0x10000andc2>=0x10000:
391+
ifc1>=0x10000orc2>=0x10000:
392392
out.write(" ('\\u{%s}', '\\u{%s}') => Some('\\u{%s}'),\n"% (hexify(c1),hexify(c2),hexify(c3)))
393393

394394
out.write(" _ => None,\n")

‎src/quick_check.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ use crate::stream_safe;
33
usecrate::tables;
44
usecrate::UnicodeNormalization;
55

6+
/// QuickCheck quickly determines if a string is normalized, it can return
7+
/// `Maybe`
8+
///
69
/// The QuickCheck algorithm can quickly determine if a text is or isn't
710
/// normalized without any allocations in many cases, but it has to be able to
811
/// return `Maybe` when a full decomposition and recomposition is necessary.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp