Skip to content

Commit c992130

Browse files
authoredSep 17, 2024
Merge pull request #103 from Marcondiro/master
Update Unicode to version 16.0.0, bump to 0.1.24
2 parents 79687ca + 0a95cae commit c992130

File tree

6 files changed

+12527
-6054
lines changed

6 files changed

+12527
-6054
lines changed
 

‎.github/workflows/rust.yml

+3-4
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

+1-1
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import urllib.request
2323
from itertools import batched
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), c3 in sorted(canon_comp.items()):
391-
if c1 >= 0x10000 and c2 >= 0x10000:
391+
if c1 >= 0x10000 or c2 >= 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

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ use crate::stream_safe;
33
use crate::tables;
44
use crate::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)