1BSON_UNICHAR_T(3) Libbson BSON_UNICHAR_T(3)
2
3
4
6 bson_unichar_t - bson_unichar_t
7
8 Unicode Character Abstraction
9
11 typedef uint32_t bson_unichar_t;
12
14 bson_unichar_t provides an abstraction on a single unicode character.
15 It is the 32-bit representation of a character. As UTF-8 can contain
16 multi-byte characters, this should be used when iterating through UTF-8
17 text.
18
20 static void
21 print_each_char (const char *str)
22 {
23 bson_unichar_t c;
24
25 for (; *str; str = bson_utf8_next_char (str)) {
26 c = bson_utf8_get_char (str);
27 printf ("The numberic value is %u.\n", (unsigned) c);
28 }
29 }
30
32 MongoDB, Inc
33
35 2017-present, MongoDB, Inc
36
37
38
39
401.14.0 Feb 22, 2019 BSON_UNICHAR_T(3)