Class CodePointMapData8

An ICU4X Unicode Map Property object, capable of querying whether a code point (key) to obtain the Unicode property value, for a specific Unicode property.

For properties whose values fit into 8 bits.

See the Rust documentation for properties for more information.

See the Rust documentation for CodePointMapData for more information.

See the Rust documentation for CodePointMapDataBorrowed for more information.

Constructors

Accessors

  • get ffiValue(): number
  • Returns number

Methods

  • Gets the value for a code point.

    See the Rust documentation for get for more information.

    Parameters

    • cp: number

    Returns number

  • Given a mask value (the nth bit marks property value = n), produce an iterator over ranges of code points whose property values are contained in the mask.

    The main mask property supported is that for General_Category, which can be obtained via general_category_to_mask() or by using GeneralCategoryNameToMaskMapper

    Should only be used on maps for properties with values less than 32 (like Generak_Category), other maps will have unpredictable results

    See the Rust documentation for iter_ranges_for_group for more information.

    Parameters

    • group: GeneralCategoryGroup_obj

    Returns CodePointRangeIterator

""