Skip to content

Commit 812423b

Browse files
Stabilise IndicConjuctBreak (#7280)
This is a Unicode 15.1 property.
1 parent 4a6d1f2 commit 812423b

File tree

32 files changed

+1190
-48
lines changed

32 files changed

+1190
-48
lines changed

components/properties/src/names.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,14 @@ impl_value_getter! {
895895
}
896896
}
897897

898+
impl_value_getter! {
899+
impl IndicConjunctBreak {
900+
PropertyNameParseIndicConjunctBreakV1 / SINGLETON_PROPERTY_NAME_PARSE_INDIC_CONJUNCT_BREAK_V1;
901+
PropertyEnumToValueNameLinearMap / PropertyNameShortIndicConjunctBreakV1 / SINGLETON_PROPERTY_NAME_SHORT_INDIC_CONJUNCT_BREAK_V1;
902+
PropertyEnumToValueNameLinearMap / PropertyNameLongIndicConjunctBreakV1 / SINGLETON_PROPERTY_NAME_LONG_INDIC_CONJUNCT_BREAK_V1;
903+
}
904+
}
905+
898906
impl_value_getter! {
899907
impl JoiningType {
900908
PropertyNameParseJoiningTypeV1 / SINGLETON_PROPERTY_NAME_PARSE_JOINING_TYPE_V1;

components/properties/src/props.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,6 @@ make_enumerated_property! {
15431543
/// IndicConjunctBreak::Extend
15441544
/// );
15451545
/// ```
1546-
#[doc(hidden)] // draft API in ICU4C
15471546
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
15481547
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
15491548
#[allow(clippy::exhaustive_structs)] // newtype
@@ -1562,7 +1561,7 @@ impl IndicConjunctBreak {
15621561
}
15631562

15641563
create_const_array! {
1565-
#[doc(hidden)] // draft API in ICU4C
1564+
#[allow(missing_docs)] // These constants don't need individual documentation.
15661565
#[allow(non_upper_case_globals)]
15671566
impl IndicConjunctBreak {
15681567
pub const None: IndicConjunctBreak = IndicConjunctBreak(0);

components/properties/src/provider.rs

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,23 @@ pub use names::{
2525
pub use names::{
2626
PropertyNameLongBidiClassV1, PropertyNameLongEastAsianWidthV1,
2727
PropertyNameLongGeneralCategoryV1, PropertyNameLongGraphemeClusterBreakV1,
28-
PropertyNameLongHangulSyllableTypeV1, PropertyNameLongIndicSyllabicCategoryV1,
29-
PropertyNameLongJoiningTypeV1, PropertyNameLongLineBreakV1, PropertyNameLongScriptV1,
30-
PropertyNameLongSentenceBreakV1, PropertyNameLongVerticalOrientationV1,
31-
PropertyNameLongWordBreakV1, PropertyNameParseBidiClassV1,
32-
PropertyNameParseCanonicalCombiningClassV1, PropertyNameParseEastAsianWidthV1,
33-
PropertyNameParseGeneralCategoryMaskV1, PropertyNameParseGeneralCategoryV1,
34-
PropertyNameParseGraphemeClusterBreakV1, PropertyNameParseHangulSyllableTypeV1,
28+
PropertyNameLongHangulSyllableTypeV1, PropertyNameLongIndicConjunctBreakV1,
29+
PropertyNameLongIndicSyllabicCategoryV1, PropertyNameLongJoiningTypeV1,
30+
PropertyNameLongLineBreakV1, PropertyNameLongScriptV1, PropertyNameLongSentenceBreakV1,
31+
PropertyNameLongVerticalOrientationV1, PropertyNameLongWordBreakV1,
32+
PropertyNameParseBidiClassV1, PropertyNameParseCanonicalCombiningClassV1,
33+
PropertyNameParseEastAsianWidthV1, PropertyNameParseGeneralCategoryMaskV1,
34+
PropertyNameParseGeneralCategoryV1, PropertyNameParseGraphemeClusterBreakV1,
35+
PropertyNameParseHangulSyllableTypeV1, PropertyNameParseIndicConjunctBreakV1,
3536
PropertyNameParseIndicSyllabicCategoryV1, PropertyNameParseJoiningTypeV1,
3637
PropertyNameParseLineBreakV1, PropertyNameParseScriptV1, PropertyNameParseSentenceBreakV1,
3738
PropertyNameParseVerticalOrientationV1, PropertyNameParseWordBreakV1,
3839
PropertyNameShortBidiClassV1, PropertyNameShortEastAsianWidthV1,
3940
PropertyNameShortGeneralCategoryV1, PropertyNameShortGraphemeClusterBreakV1,
40-
PropertyNameShortHangulSyllableTypeV1, PropertyNameShortIndicSyllabicCategoryV1,
41-
PropertyNameShortJoiningTypeV1, PropertyNameShortLineBreakV1, PropertyNameShortScriptV1,
42-
PropertyNameShortSentenceBreakV1, PropertyNameShortVerticalOrientationV1,
43-
PropertyNameShortWordBreakV1,
41+
PropertyNameShortHangulSyllableTypeV1, PropertyNameShortIndicConjunctBreakV1,
42+
PropertyNameShortIndicSyllabicCategoryV1, PropertyNameShortJoiningTypeV1,
43+
PropertyNameShortLineBreakV1, PropertyNameShortScriptV1, PropertyNameShortSentenceBreakV1,
44+
PropertyNameShortVerticalOrientationV1, PropertyNameShortWordBreakV1,
4445
};
4546

4647
pub use crate::props::gc::GeneralCategoryULE;
@@ -167,6 +168,7 @@ const _: () = {
167168
impl_property_name_long_grapheme_cluster_break_v1!(Baked);
168169
impl_property_name_long_hangul_syllable_type_v1!(Baked);
169170
impl_property_name_long_indic_syllabic_category_v1!(Baked);
171+
impl_property_name_long_indic_conjunct_break_v1!(Baked);
170172
impl_property_name_long_joining_type_v1!(Baked);
171173
impl_property_name_long_line_break_v1!(Baked);
172174
impl_property_name_long_script_v1!(Baked);
@@ -181,6 +183,7 @@ const _: () = {
181183
impl_property_name_parse_grapheme_cluster_break_v1!(Baked);
182184
impl_property_name_parse_hangul_syllable_type_v1!(Baked);
183185
impl_property_name_parse_indic_syllabic_category_v1!(Baked);
186+
impl_property_name_parse_indic_conjunct_break_v1!(Baked);
184187
impl_property_name_parse_joining_type_v1!(Baked);
185188
impl_property_name_parse_line_break_v1!(Baked);
186189
impl_property_name_parse_script_v1!(Baked);
@@ -195,6 +198,7 @@ const _: () = {
195198
impl_property_name_short_grapheme_cluster_break_v1!(Baked);
196199
impl_property_name_short_hangul_syllable_type_v1!(Baked);
197200
impl_property_name_short_indic_syllabic_category_v1!(Baked);
201+
impl_property_name_short_indic_conjunct_break_v1!(Baked);
198202
impl_property_name_short_joining_type_v1!(Baked);
199203
impl_property_name_short_line_break_v1!(Baked);
200204
impl_property_name_short_script_v1!(Baked);
@@ -731,6 +735,7 @@ pub const MARKERS: &[DataMarkerInfo] = &[
731735
PropertyNameLongGraphemeClusterBreakV1::INFO,
732736
PropertyNameLongHangulSyllableTypeV1::INFO,
733737
PropertyNameLongIndicSyllabicCategoryV1::INFO,
738+
PropertyNameLongIndicConjunctBreakV1::INFO,
734739
PropertyNameLongJoiningTypeV1::INFO,
735740
PropertyNameLongLineBreakV1::INFO,
736741
PropertyNameLongScriptV1::INFO,
@@ -745,6 +750,7 @@ pub const MARKERS: &[DataMarkerInfo] = &[
745750
PropertyNameParseGraphemeClusterBreakV1::INFO,
746751
PropertyNameParseHangulSyllableTypeV1::INFO,
747752
PropertyNameParseIndicSyllabicCategoryV1::INFO,
753+
PropertyNameParseIndicConjunctBreakV1::INFO,
748754
PropertyNameParseJoiningTypeV1::INFO,
749755
PropertyNameParseLineBreakV1::INFO,
750756
PropertyNameParseScriptV1::INFO,
@@ -759,6 +765,7 @@ pub const MARKERS: &[DataMarkerInfo] = &[
759765
PropertyNameShortGraphemeClusterBreakV1::INFO,
760766
PropertyNameShortHangulSyllableTypeV1::INFO,
761767
PropertyNameShortIndicSyllabicCategoryV1::INFO,
768+
PropertyNameShortIndicConjunctBreakV1::INFO,
762769
PropertyNameShortJoiningTypeV1::INFO,
763770
PropertyNameShortLineBreakV1::INFO,
764771
PropertyNameShortScriptV1::INFO,

components/properties/src/provider/names.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ icu_provider::data_marker!(
6767
PropertyValueNameToEnumMap<'static>,
6868
is_singleton = true
6969
);
70+
icu_provider::data_marker!(
71+
/// `PropertyNameParseIndicConjunctBreakV1`
72+
PropertyNameParseIndicConjunctBreakV1,
73+
PropertyValueNameToEnumMap<'static>,
74+
is_singleton = true
75+
);
7076
icu_provider::data_marker!(
7177
/// `PropertyNameParseJoiningTypeV1`
7278
PropertyNameParseJoiningTypeV1,
@@ -175,6 +181,18 @@ icu_provider::data_marker!(
175181
PropertyEnumToValueNameLinearMap<'static>,
176182
is_singleton = true
177183
);
184+
icu_provider::data_marker!(
185+
/// `PropertyNameLongIndicConjunctBreakV1`
186+
PropertyNameLongIndicConjunctBreakV1,
187+
PropertyEnumToValueNameLinearMap<'static>,
188+
is_singleton = true
189+
);
190+
icu_provider::data_marker!(
191+
/// `PropertyNameShortIndicConjunctBreakV1`
192+
PropertyNameShortIndicConjunctBreakV1,
193+
PropertyEnumToValueNameLinearMap<'static>,
194+
is_singleton = true
195+
);
178196
icu_provider::data_marker!(
179197
/// `PropertyNameLongJoiningTypeV1`
180198
PropertyNameLongJoiningTypeV1,

ffi/capi/bindings/c/IndicConjunctBreak.d.h

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ffi/capi/bindings/c/IndicConjunctBreak.h

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ffi/capi/bindings/cpp/icu4x/IndicConjunctBreak.d.hpp

Lines changed: 79 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ffi/capi/bindings/cpp/icu4x/IndicConjunctBreak.hpp

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)