summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/docs/source/properties_iter_ffi.rst
blob: ee195fdf47975c3d820af357738a2ed1953f7767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
``properties_iter::ffi``
========================

.. js:class:: CodePointRangeIterator

    An iterator over code point ranges, produced by ``ICU4XCodePointSetData`` or one of the ``ICU4XCodePointMapData`` types


    .. js:method:: next()

        Advance the iterator by one and return the next range.

        If the iterator is out of items, ``done`` will be true


.. js:class:: CodePointRangeIteratorResult

    Result of a single iteration of :js:class:`CodePointRangeIterator`. Logically can be considered to be an ``Option<RangeInclusive<u32>>``,

    ``start`` and ``end`` represent an inclusive range of code points start, end, and ``done`` will be true if the iterator has already finished. The last contentful iteration will NOT produce a range done=true, in other words ``start`` and ``end`` are useful values if and only if ``done=false``.


    .. js:attribute:: start

    .. js:attribute:: end

    .. js:attribute:: done