icu_properties::sets

Function quotation_mark

Source
pub const fn quotation_mark() -> CodePointSetDataBorrowed<'static>
Expand description

Punctuation characters that function as quotation marks.

โœจ Enabled with the compiled_data Cargo feature.

๐Ÿ“š Help choosing a constructor

ยงExample

use icu::properties::sets;

let quotation_mark = sets::quotation_mark();

assert!(quotation_mark.contains('\''));
assert!(quotation_mark.contains('โ€ž'));  // U+201E DOUBLE LOW-9 QUOTATION MARK
assert!(!quotation_mark.contains('<'));