2009-08-11 02:05:16 +02:00
|
|
|
/*
|
2011-04-21 23:14:28 +02:00
|
|
|
* Copyright © 2009 Red Hat, Inc.
|
2011-04-29 18:00:38 +02:00
|
|
|
* Copyright © 2011 Codethink Limited
|
2012-08-01 03:36:16 +02:00
|
|
|
* Copyright © 2011,2012 Google, Inc.
|
2009-08-11 02:05:16 +02:00
|
|
|
*
|
2010-04-22 06:11:43 +02:00
|
|
|
* This is part of HarfBuzz, a text shaping library.
|
2009-08-11 02:05:16 +02:00
|
|
|
*
|
|
|
|
* Permission is hereby granted, without written agreement and without
|
|
|
|
* license or royalty fees, to use, copy, modify, and distribute this
|
|
|
|
* software and its documentation for any purpose, provided that the
|
|
|
|
* above copyright notice and the following two paragraphs appear in
|
|
|
|
* all copies of this software.
|
|
|
|
*
|
|
|
|
* IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
|
|
|
|
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
|
|
|
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
|
|
|
|
* IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
|
|
|
* DAMAGE.
|
|
|
|
*
|
|
|
|
* THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
|
|
|
|
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
|
|
|
* ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
|
|
|
|
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
|
|
|
*
|
|
|
|
* Red Hat Author(s): Behdad Esfahbod
|
2011-04-20 06:19:20 +02:00
|
|
|
* Codethink Author(s): Ryan Lortie
|
2011-04-21 23:14:28 +02:00
|
|
|
* Google Author(s): Behdad Esfahbod
|
2009-08-11 02:05:16 +02:00
|
|
|
*/
|
|
|
|
|
2012-04-12 19:17:44 +02:00
|
|
|
#ifndef HB_H_IN
|
|
|
|
#error "Include <hb.h> instead."
|
|
|
|
#endif
|
|
|
|
|
2009-08-11 02:05:16 +02:00
|
|
|
#ifndef HB_UNICODE_H
|
|
|
|
#define HB_UNICODE_H
|
|
|
|
|
|
|
|
#include "hb-common.h"
|
|
|
|
|
|
|
|
HB_BEGIN_DECLS
|
|
|
|
|
2010-07-23 21:11:18 +02:00
|
|
|
|
2018-09-10 11:37:24 +02:00
|
|
|
/**
|
|
|
|
* HB_UNICODE_MAX
|
|
|
|
*
|
|
|
|
* Since: 1.9.0
|
2018-10-11 20:16:55 +02:00
|
|
|
**/
|
2018-08-26 07:07:17 +02:00
|
|
|
#define HB_UNICODE_MAX 0x10FFFFu
|
|
|
|
|
|
|
|
|
2012-08-01 22:23:44 +02:00
|
|
|
/* hb_unicode_general_category_t */
|
|
|
|
|
|
|
|
/* Unicode Character Database property: General_Category (gc) */
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_CONTROL, /* Cc */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_FORMAT, /* Cf */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_UNASSIGNED, /* Cn */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_PRIVATE_USE, /* Co */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_SURROGATE, /* Cs */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_LOWERCASE_LETTER, /* Ll */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_MODIFIER_LETTER, /* Lm */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_OTHER_LETTER, /* Lo */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_TITLECASE_LETTER, /* Lt */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_UPPERCASE_LETTER, /* Lu */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK, /* Mc */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK, /* Me */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK, /* Mn */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_DECIMAL_NUMBER, /* Nd */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_LETTER_NUMBER, /* Nl */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_OTHER_NUMBER, /* No */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_CONNECT_PUNCTUATION, /* Pc */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_DASH_PUNCTUATION, /* Pd */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_CLOSE_PUNCTUATION, /* Pe */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_FINAL_PUNCTUATION, /* Pf */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_INITIAL_PUNCTUATION, /* Pi */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_OTHER_PUNCTUATION, /* Po */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_OPEN_PUNCTUATION, /* Ps */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_CURRENCY_SYMBOL, /* Sc */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_MODIFIER_SYMBOL, /* Sk */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_MATH_SYMBOL, /* Sm */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_OTHER_SYMBOL, /* So */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_LINE_SEPARATOR, /* Zl */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_PARAGRAPH_SEPARATOR, /* Zp */
|
|
|
|
HB_UNICODE_GENERAL_CATEGORY_SPACE_SEPARATOR /* Zs */
|
|
|
|
} hb_unicode_general_category_t;
|
|
|
|
|
|
|
|
/* hb_unicode_combining_class_t */
|
|
|
|
|
2012-08-02 00:07:42 +02:00
|
|
|
/* Note: newer versions of Unicode may add new values. Clients should be ready to handle
|
|
|
|
* any value in the 0..254 range being returned from hb_unicode_combining_class().
|
|
|
|
*/
|
|
|
|
|
2012-08-01 22:23:44 +02:00
|
|
|
/* Unicode Character Database property: Canonical_Combining_Class (ccc) */
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
HB_UNICODE_COMBINING_CLASS_NOT_REORDERED = 0,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_OVERLAY = 1,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_NUKTA = 7,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_KANA_VOICING = 8,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_VIRAMA = 9,
|
|
|
|
|
|
|
|
/* Hebrew */
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC10 = 10,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC11 = 11,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC12 = 12,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC13 = 13,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC14 = 14,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC15 = 15,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC16 = 16,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC17 = 17,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC18 = 18,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC19 = 19,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC20 = 20,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC21 = 21,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC22 = 22,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC23 = 23,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC24 = 24,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC25 = 25,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC26 = 26,
|
|
|
|
|
|
|
|
/* Arabic */
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC27 = 27,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC28 = 28,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC29 = 29,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC30 = 30,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC31 = 31,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC32 = 32,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC33 = 33,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC34 = 34,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC35 = 35,
|
|
|
|
|
|
|
|
/* Syriac */
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC36 = 36,
|
|
|
|
|
|
|
|
/* Telugu */
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC84 = 84,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC91 = 91,
|
|
|
|
|
|
|
|
/* Thai */
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC103 = 103,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC107 = 107,
|
|
|
|
|
|
|
|
/* Lao */
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC118 = 118,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC122 = 122,
|
|
|
|
|
|
|
|
/* Tibetan */
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC129 = 129,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC130 = 130,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_CCC133 = 132,
|
|
|
|
|
|
|
|
|
|
|
|
HB_UNICODE_COMBINING_CLASS_ATTACHED_BELOW_LEFT = 200,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_ATTACHED_BELOW = 202,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE = 214,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE_RIGHT = 216,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_BELOW_LEFT = 218,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_BELOW = 220,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_BELOW_RIGHT = 222,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_LEFT = 224,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_RIGHT = 226,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_ABOVE_LEFT = 228,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_ABOVE = 230,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_ABOVE_RIGHT = 232,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_DOUBLE_BELOW = 233,
|
|
|
|
HB_UNICODE_COMBINING_CLASS_DOUBLE_ABOVE = 234,
|
|
|
|
|
|
|
|
HB_UNICODE_COMBINING_CLASS_IOTA_SUBSCRIPT = 240,
|
|
|
|
|
|
|
|
HB_UNICODE_COMBINING_CLASS_INVALID = 255
|
|
|
|
} hb_unicode_combining_class_t;
|
|
|
|
|
|
|
|
|
2009-08-11 02:05:16 +02:00
|
|
|
/*
|
|
|
|
* hb_unicode_funcs_t
|
|
|
|
*/
|
|
|
|
|
2012-06-16 21:21:55 +02:00
|
|
|
typedef struct hb_unicode_funcs_t hb_unicode_funcs_t;
|
2009-08-11 02:05:16 +02:00
|
|
|
|
2011-04-27 15:24:37 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* just give me the best implementation you've got there.
|
|
|
|
*/
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN hb_unicode_funcs_t *
|
2011-04-27 15:24:37 +02:00
|
|
|
hb_unicode_funcs_get_default (void);
|
|
|
|
|
|
|
|
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN hb_unicode_funcs_t *
|
2011-05-11 02:02:49 +02:00
|
|
|
hb_unicode_funcs_create (hb_unicode_funcs_t *parent);
|
2009-08-11 02:05:16 +02:00
|
|
|
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN hb_unicode_funcs_t *
|
2011-05-12 00:14:44 +02:00
|
|
|
hb_unicode_funcs_get_empty (void);
|
|
|
|
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN hb_unicode_funcs_t *
|
2009-08-11 02:05:16 +02:00
|
|
|
hb_unicode_funcs_reference (hb_unicode_funcs_t *ufuncs);
|
|
|
|
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN void
|
2009-08-11 02:05:16 +02:00
|
|
|
hb_unicode_funcs_destroy (hb_unicode_funcs_t *ufuncs);
|
|
|
|
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN hb_bool_t
|
2011-04-28 03:46:01 +02:00
|
|
|
hb_unicode_funcs_set_user_data (hb_unicode_funcs_t *ufuncs,
|
|
|
|
hb_user_data_key_t *key,
|
|
|
|
void * data,
|
2011-08-09 00:43:24 +02:00
|
|
|
hb_destroy_func_t destroy,
|
|
|
|
hb_bool_t replace);
|
2011-04-28 03:46:01 +02:00
|
|
|
|
|
|
|
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN void *
|
2011-04-28 03:46:01 +02:00
|
|
|
hb_unicode_funcs_get_user_data (hb_unicode_funcs_t *ufuncs,
|
|
|
|
hb_user_data_key_t *key);
|
|
|
|
|
|
|
|
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN void
|
2009-08-11 05:25:28 +02:00
|
|
|
hb_unicode_funcs_make_immutable (hb_unicode_funcs_t *ufuncs);
|
2009-08-11 02:05:16 +02:00
|
|
|
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN hb_bool_t
|
2010-10-04 23:01:01 +02:00
|
|
|
hb_unicode_funcs_is_immutable (hb_unicode_funcs_t *ufuncs);
|
2009-08-11 02:05:16 +02:00
|
|
|
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN hb_unicode_funcs_t *
|
2011-04-20 07:34:51 +02:00
|
|
|
hb_unicode_funcs_get_parent (hb_unicode_funcs_t *ufuncs);
|
|
|
|
|
|
|
|
|
2010-10-04 22:45:21 +02:00
|
|
|
/*
|
|
|
|
* funcs
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* typedefs */
|
2009-08-11 02:05:16 +02:00
|
|
|
|
2012-08-01 22:23:44 +02:00
|
|
|
typedef hb_unicode_combining_class_t (*hb_unicode_combining_class_func_t) (hb_unicode_funcs_t *ufuncs,
|
2011-05-11 02:14:44 +02:00
|
|
|
hb_codepoint_t unicode,
|
|
|
|
void *user_data);
|
2011-07-08 05:47:19 +02:00
|
|
|
typedef hb_unicode_general_category_t (*hb_unicode_general_category_func_t) (hb_unicode_funcs_t *ufuncs,
|
2011-05-11 02:14:44 +02:00
|
|
|
hb_codepoint_t unicode,
|
|
|
|
void *user_data);
|
2011-07-08 05:47:19 +02:00
|
|
|
typedef hb_codepoint_t (*hb_unicode_mirroring_func_t) (hb_unicode_funcs_t *ufuncs,
|
2011-05-11 02:14:44 +02:00
|
|
|
hb_codepoint_t unicode,
|
|
|
|
void *user_data);
|
2011-07-08 05:47:19 +02:00
|
|
|
typedef hb_script_t (*hb_unicode_script_func_t) (hb_unicode_funcs_t *ufuncs,
|
2011-05-11 02:14:44 +02:00
|
|
|
hb_codepoint_t unicode,
|
|
|
|
void *user_data);
|
2009-08-11 02:05:16 +02:00
|
|
|
|
2011-07-08 05:47:19 +02:00
|
|
|
typedef hb_bool_t (*hb_unicode_compose_func_t) (hb_unicode_funcs_t *ufuncs,
|
|
|
|
hb_codepoint_t a,
|
|
|
|
hb_codepoint_t b,
|
|
|
|
hb_codepoint_t *ab,
|
|
|
|
void *user_data);
|
|
|
|
typedef hb_bool_t (*hb_unicode_decompose_func_t) (hb_unicode_funcs_t *ufuncs,
|
|
|
|
hb_codepoint_t ab,
|
|
|
|
hb_codepoint_t *a,
|
|
|
|
hb_codepoint_t *b,
|
|
|
|
void *user_data);
|
|
|
|
|
2010-10-04 22:45:21 +02:00
|
|
|
/* setters */
|
|
|
|
|
2013-09-14 02:23:51 +02:00
|
|
|
/**
|
|
|
|
* hb_unicode_funcs_set_combining_class_func:
|
|
|
|
* @ufuncs: a Unicode function structure
|
|
|
|
* @func: (closure user_data) (destroy destroy) (scope notified):
|
|
|
|
* @user_data:
|
|
|
|
* @destroy:
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
2015-09-03 13:23:22 +02:00
|
|
|
* Since: 0.9.2
|
2013-09-14 02:23:51 +02:00
|
|
|
**/
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN void
|
2011-04-20 08:00:47 +02:00
|
|
|
hb_unicode_funcs_set_combining_class_func (hb_unicode_funcs_t *ufuncs,
|
2013-09-14 02:23:51 +02:00
|
|
|
hb_unicode_combining_class_func_t func,
|
2011-05-11 02:14:44 +02:00
|
|
|
void *user_data, hb_destroy_func_t destroy);
|
2011-04-20 08:00:47 +02:00
|
|
|
|
2013-09-14 02:23:51 +02:00
|
|
|
/**
|
|
|
|
* hb_unicode_funcs_set_general_category_func:
|
|
|
|
* @ufuncs: a Unicode function structure
|
|
|
|
* @func: (closure user_data) (destroy destroy) (scope notified):
|
|
|
|
* @user_data:
|
|
|
|
* @destroy:
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
2015-09-03 13:23:22 +02:00
|
|
|
* Since: 0.9.2
|
2013-09-14 02:23:51 +02:00
|
|
|
**/
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN void
|
2009-08-11 02:05:16 +02:00
|
|
|
hb_unicode_funcs_set_general_category_func (hb_unicode_funcs_t *ufuncs,
|
2013-09-14 02:23:51 +02:00
|
|
|
hb_unicode_general_category_func_t func,
|
2011-05-11 02:14:44 +02:00
|
|
|
void *user_data, hb_destroy_func_t destroy);
|
2009-08-11 02:05:16 +02:00
|
|
|
|
2013-09-14 02:23:51 +02:00
|
|
|
/**
|
|
|
|
* hb_unicode_funcs_set_mirroring_func:
|
|
|
|
* @ufuncs: a Unicode function structure
|
|
|
|
* @func: (closure user_data) (destroy destroy) (scope notified):
|
|
|
|
* @user_data:
|
|
|
|
* @destroy:
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
2015-09-03 13:23:22 +02:00
|
|
|
* Since: 0.9.2
|
2013-09-14 02:23:51 +02:00
|
|
|
**/
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN void
|
2011-04-20 08:00:47 +02:00
|
|
|
hb_unicode_funcs_set_mirroring_func (hb_unicode_funcs_t *ufuncs,
|
2013-09-14 02:23:51 +02:00
|
|
|
hb_unicode_mirroring_func_t func,
|
2011-05-11 02:14:44 +02:00
|
|
|
void *user_data, hb_destroy_func_t destroy);
|
2011-04-20 08:00:47 +02:00
|
|
|
|
2013-09-14 02:23:51 +02:00
|
|
|
/**
|
|
|
|
* hb_unicode_funcs_set_script_func:
|
|
|
|
* @ufuncs: a Unicode function structure
|
|
|
|
* @func: (closure user_data) (destroy destroy) (scope notified):
|
|
|
|
* @user_data:
|
|
|
|
* @destroy:
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
2015-09-03 13:23:22 +02:00
|
|
|
* Since: 0.9.2
|
2013-09-14 02:23:51 +02:00
|
|
|
**/
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN void
|
2009-08-11 02:05:16 +02:00
|
|
|
hb_unicode_funcs_set_script_func (hb_unicode_funcs_t *ufuncs,
|
2013-09-14 02:23:51 +02:00
|
|
|
hb_unicode_script_func_t func,
|
2011-05-11 02:14:44 +02:00
|
|
|
void *user_data, hb_destroy_func_t destroy);
|
2009-08-11 02:05:16 +02:00
|
|
|
|
2013-09-14 02:23:51 +02:00
|
|
|
/**
|
|
|
|
* hb_unicode_funcs_set_compose_func:
|
|
|
|
* @ufuncs: a Unicode function structure
|
|
|
|
* @func: (closure user_data) (destroy destroy) (scope notified):
|
|
|
|
* @user_data:
|
|
|
|
* @destroy:
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
2015-06-01 13:22:01 +02:00
|
|
|
* Since: 0.9.2
|
2013-09-14 02:23:51 +02:00
|
|
|
**/
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN void
|
2011-07-08 05:47:19 +02:00
|
|
|
hb_unicode_funcs_set_compose_func (hb_unicode_funcs_t *ufuncs,
|
2013-09-14 02:23:51 +02:00
|
|
|
hb_unicode_compose_func_t func,
|
2011-07-08 05:47:19 +02:00
|
|
|
void *user_data, hb_destroy_func_t destroy);
|
|
|
|
|
2013-09-14 02:23:51 +02:00
|
|
|
/**
|
|
|
|
* hb_unicode_funcs_set_decompose_func:
|
|
|
|
* @ufuncs: a Unicode function structure
|
|
|
|
* @func: (closure user_data) (destroy destroy) (scope notified):
|
|
|
|
* @user_data:
|
|
|
|
* @destroy:
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
2015-06-01 13:22:01 +02:00
|
|
|
* Since: 0.9.2
|
2013-09-14 02:23:51 +02:00
|
|
|
**/
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN void
|
2011-07-08 05:47:19 +02:00
|
|
|
hb_unicode_funcs_set_decompose_func (hb_unicode_funcs_t *ufuncs,
|
2013-09-14 02:23:51 +02:00
|
|
|
hb_unicode_decompose_func_t func,
|
2011-07-08 05:47:19 +02:00
|
|
|
void *user_data, hb_destroy_func_t destroy);
|
2010-10-04 22:45:21 +02:00
|
|
|
|
|
|
|
/* accessors */
|
|
|
|
|
2015-06-01 13:22:01 +02:00
|
|
|
/**
|
2015-12-28 23:23:24 +01:00
|
|
|
* hb_unicode_combining_class:
|
|
|
|
*
|
2015-06-01 13:22:01 +02:00
|
|
|
* Since: 0.9.2
|
|
|
|
**/
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN hb_unicode_combining_class_t
|
2011-07-08 05:47:19 +02:00
|
|
|
hb_unicode_combining_class (hb_unicode_funcs_t *ufuncs,
|
|
|
|
hb_codepoint_t unicode);
|
2011-04-20 08:00:47 +02:00
|
|
|
|
2015-06-01 13:22:01 +02:00
|
|
|
/**
|
2015-12-28 23:23:24 +01:00
|
|
|
* hb_unicode_general_category:
|
|
|
|
*
|
2015-06-01 13:22:01 +02:00
|
|
|
* Since: 0.9.2
|
|
|
|
**/
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN hb_unicode_general_category_t
|
2011-07-08 05:47:19 +02:00
|
|
|
hb_unicode_general_category (hb_unicode_funcs_t *ufuncs,
|
|
|
|
hb_codepoint_t unicode);
|
2009-12-20 15:29:16 +01:00
|
|
|
|
2015-06-01 13:22:01 +02:00
|
|
|
/**
|
2015-12-28 23:23:24 +01:00
|
|
|
* hb_unicode_mirroring:
|
|
|
|
*
|
2015-06-01 13:22:01 +02:00
|
|
|
* Since: 0.9.2
|
|
|
|
**/
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN hb_codepoint_t
|
2011-07-08 05:47:19 +02:00
|
|
|
hb_unicode_mirroring (hb_unicode_funcs_t *ufuncs,
|
|
|
|
hb_codepoint_t unicode);
|
2011-04-20 08:00:47 +02:00
|
|
|
|
2015-06-01 13:22:01 +02:00
|
|
|
/**
|
2015-12-28 23:23:24 +01:00
|
|
|
* hb_unicode_script:
|
|
|
|
*
|
2015-06-01 13:22:01 +02:00
|
|
|
* Since: 0.9.2
|
|
|
|
**/
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN hb_script_t
|
2011-07-08 05:47:19 +02:00
|
|
|
hb_unicode_script (hb_unicode_funcs_t *ufuncs,
|
|
|
|
hb_codepoint_t unicode);
|
2009-12-20 15:29:16 +01:00
|
|
|
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN hb_bool_t
|
2011-07-08 05:47:19 +02:00
|
|
|
hb_unicode_compose (hb_unicode_funcs_t *ufuncs,
|
|
|
|
hb_codepoint_t a,
|
|
|
|
hb_codepoint_t b,
|
|
|
|
hb_codepoint_t *ab);
|
2015-06-01 13:22:01 +02:00
|
|
|
|
2015-11-19 11:34:12 +01:00
|
|
|
HB_EXTERN hb_bool_t
|
2011-07-08 05:47:19 +02:00
|
|
|
hb_unicode_decompose (hb_unicode_funcs_t *ufuncs,
|
|
|
|
hb_codepoint_t ab,
|
|
|
|
hb_codepoint_t *a,
|
|
|
|
hb_codepoint_t *b);
|
2009-12-20 15:29:16 +01:00
|
|
|
|
2009-08-11 02:05:16 +02:00
|
|
|
HB_END_DECLS
|
|
|
|
|
2009-11-05 00:12:32 +01:00
|
|
|
#endif /* HB_UNICODE_H */
|