pub struct ICU4XCodePointSetBuilder(pub CodePointInversionListBuilder);
Tuple Fields§
§0: CodePointInversionListBuilder
Implementations§
Source§impl ICU4XCodePointSetBuilder
impl ICU4XCodePointSetBuilder
Sourcepub fn build(&mut self) -> Box<ICU4XCodePointSetData>
pub fn build(&mut self) -> Box<ICU4XCodePointSetData>
Build this into a set
This object is repopulated with an empty builder
Sourcepub fn complement(&mut self)
pub fn complement(&mut self)
Complements this set
(Elements in this set are removed and vice versa)
Sourcepub fn add_char(&mut self, ch: DiplomatChar)
pub fn add_char(&mut self, ch: DiplomatChar)
Add a single character to the set
Sourcepub fn add_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)
pub fn add_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)
Add an inclusive range of characters to the set
Sourcepub fn add_inclusive_range_u32(&mut self, start: u32, end: u32)
pub fn add_inclusive_range_u32(&mut self, start: u32, end: u32)
Deprecated, use add_inclusive_range
.
Sourcepub fn add_set(&mut self, data: &ICU4XCodePointSetData)
pub fn add_set(&mut self, data: &ICU4XCodePointSetData)
Add all elements that belong to the provided set to the set
Sourcepub fn remove_char(&mut self, ch: DiplomatChar)
pub fn remove_char(&mut self, ch: DiplomatChar)
Remove a single character to the set
Sourcepub fn remove_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)
pub fn remove_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)
Remove an inclusive range of characters from the set
Sourcepub fn remove_set(&mut self, data: &ICU4XCodePointSetData)
pub fn remove_set(&mut self, data: &ICU4XCodePointSetData)
Remove all elements that belong to the provided set from the set
Sourcepub fn retain_char(&mut self, ch: DiplomatChar)
pub fn retain_char(&mut self, ch: DiplomatChar)
Removes all elements from the set except a single character
Sourcepub fn retain_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)
pub fn retain_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)
Removes all elements from the set except an inclusive range of characters f
Sourcepub fn retain_set(&mut self, data: &ICU4XCodePointSetData)
pub fn retain_set(&mut self, data: &ICU4XCodePointSetData)
Removes all elements from the set except all elements in the provided set
Sourcepub fn complement_char(&mut self, ch: DiplomatChar)
pub fn complement_char(&mut self, ch: DiplomatChar)
Complement a single character to the set
(Characters which are in this set are removed and vice versa)
Sourcepub fn complement_inclusive_range(
&mut self,
start: DiplomatChar,
end: DiplomatChar,
)
pub fn complement_inclusive_range( &mut self, start: DiplomatChar, end: DiplomatChar, )
Complement an inclusive range of characters from the set
(Characters which are in this set are removed and vice versa)
Sourcepub fn complement_set(&mut self, data: &ICU4XCodePointSetData)
pub fn complement_set(&mut self, data: &ICU4XCodePointSetData)
Complement all elements that belong to the provided set from the set
(Characters which are in this set are removed and vice versa)