Debian Codegraph @

intl/icu_capi/bindings/cpp/CodePointRangeIteratorResult.hpp

raw
1 #ifndef CodePointRangeIteratorResult_HPP
2 #define CodePointRangeIteratorResult_HPP
3 #include <stdint.h>
4 #include <stddef.h>
5 #include <stdbool.h>
6 #include <algorithm>
7 #include <memory>
8 #include <variant>
9 #include <optional>
10 #include "diplomat_runtime.hpp"
11
12 #include "CodePointRangeIteratorResult.h"
13
14
15
16 /**
17 * Result of a single iteration of [`CodePointRangeIterator`].
18 * Logically can be considered to be an `Option<RangeInclusive<u32>>`,
19 *
20 * `start` and `end` represent an inclusive range of code points [start, end],
21 * and `done` will be true if the iterator has already finished. The last contentful
22 * iteration will NOT produce a range done=true, in other words `start` and `end` are useful
23 * values if and only if `done=false`.
24 */
25 struct CodePointRangeIteratorResult {
26 public:
27 uint32_t start;
28 uint32_t end;
29 bool done;
30 };
31
32
33 #endif