QtBase  v6.3.1
hb-map.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2018 Google, Inc.
3  *
4  * This is part of HarfBuzz, a text shaping library.
5  *
6  * Permission is hereby granted, without written agreement and without
7  * license or royalty fees, to use, copy, modify, and distribute this
8  * software and its documentation for any purpose, provided that the
9  * above copyright notice and the following two paragraphs appear in
10  * all copies of this software.
11  *
12  * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
13  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
14  * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
15  * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
16  * DAMAGE.
17  *
18  * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
19  * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20  * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
21  * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
22  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
23  *
24  * Google Author(s): Behdad Esfahbod
25  */
26 
27 #if !defined(HB_H_IN) && !defined(HB_NO_SINGLE_HEADER_ERROR)
28 #error "Include <hb.h> instead."
29 #endif
30 
31 #ifndef HB_MAP_H
32 #define HB_MAP_H
33 
34 #include "hb-common.h"
35 
37 
38 
46 #define HB_MAP_VALUE_INVALID ((hb_codepoint_t) -1)
47 
54 typedef struct hb_map_t hb_map_t;
55 
56 
58 hb_map_create (void);
59 
61 hb_map_get_empty (void);
62 
65 
66 HB_EXTERN void
68 
72  void * data,
74  hb_bool_t replace);
75 
76 HB_EXTERN void *
79 
80 
81 /* Returns false if allocation has failed before */
84 
85 HB_EXTERN void
87 
90 
91 HB_EXTERN unsigned int
93 
94 HB_EXTERN void
98 
100 hb_map_get (const hb_map_t *map,
102 
103 HB_EXTERN void
106 
108 hb_map_has (const hb_map_t *map,
110 
111 
113 
114 #endif /* HB_MAP_H */
QMap< QString, QString > map
[6]
HB_EXTERN hb_map_t * hb_map_reference(hb_map_t *map)
Definition: hb-map.cc:90
HB_EXTERN void hb_map_destroy(hb_map_t *map)
Definition: hb-map.cc:106
HB_EXTERN void * hb_map_get_user_data(hb_map_t *map, hb_user_data_key_t *key)
Definition: hb-map.cc:152
HB_EXTERN hb_bool_t hb_map_has(const hb_map_t *map, hb_codepoint_t key)
Definition: hb-map.cc:240
HB_EXTERN hb_bool_t hb_map_allocation_successful(const hb_map_t *map)
Definition: hb-map.cc:170
HB_EXTERN hb_map_t * hb_map_get_empty(void)
Definition: hb-map.cc:74
HB_EXTERN unsigned int hb_map_get_population(const hb_map_t *map)
Definition: hb-map.cc:288
HB_EXTERN hb_map_t * hb_map_create(void)
Definition: hb-map.cc:52
HB_EXTERN hb_bool_t hb_map_set_user_data(hb_map_t *map, hb_user_data_key_t *key, void *data, hb_destroy_func_t destroy, hb_bool_t replace)
Definition: hb-map.cc:130
HB_EXTERN hb_bool_t hb_map_is_empty(const hb_map_t *map)
Definition: hb-map.cc:272
HB_EXTERN void hb_map_set(hb_map_t *map, hb_codepoint_t key, hb_codepoint_t value)
Definition: hb-map.cc:187
HB_EXTERN hb_codepoint_t hb_map_get(const hb_map_t *map, hb_codepoint_t key)
Definition: hb-map.cc:205
HB_EXTERN void hb_map_del(hb_map_t *map, hb_codepoint_t key)
Definition: hb-map.cc:221
HB_EXTERN void hb_map_clear(hb_map_t *map)
Definition: hb-map.cc:256
EGLOutputLayerEXT EGLint EGLAttrib value
GLuint64 key
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
void(* hb_destroy_func_t)(void *user_data)
Definition: hb-common.h:771
HB_BEGIN_DECLS typedef int hb_bool_t
Definition: hb-common.h:97
uint32_t hb_codepoint_t
Definition: hb-common.h:106
#define HB_BEGIN_DECLS
Definition: hb-common.h:45
#define HB_END_DECLS
Definition: hb-common.h:46
#define HB_EXTERN
Definition: hb-common.h:37
HB_EXTERN hb_font_get_glyph_func_t void hb_destroy_func_t destroy