1BSON_UNICHAR_T(3)                   libbson                  BSON_UNICHAR_T(3)
2
3
4
5Unicode Character Abstraction
6

SYNOPSIS

8          typedef uint32_t bson_unichar_t;
9

DESCRIPTION

11       bson_unichar_t  provides  an abstraction on a single unicode character.
12       It is the 32-bit representation of a character. As  UTF-8  can  contain
13       multi-byte characters, this should be used when iterating through UTF-8
14       text.
15

EXAMPLE

17          static void
18          print_each_char (const char *str)
19          {
20             bson_unichar_t c;
21
22             for (; *str; str = bson_utf8_next_char (str)) {
23                c = bson_utf8_get_char (str);
24                printf ("The numberic value is %u.\n", (unsigned) c);
25             }
26          }
27

AUTHOR

29       MongoDB, Inc
30
32       2017-present, MongoDB, Inc
33
34
35
36
371.25.1                           Nov 08, 2023                BSON_UNICHAR_T(3)
Impressum