michael@0: /* michael@0: * Copyright © 2009 Red Hat, Inc. michael@0: * Copyright © 2011 Codethink Limited michael@0: * Copyright © 2010,2011,2012 Google, Inc. michael@0: * michael@0: * This is part of HarfBuzz, a text shaping library. michael@0: * michael@0: * Permission is hereby granted, without written agreement and without michael@0: * license or royalty fees, to use, copy, modify, and distribute this michael@0: * software and its documentation for any purpose, provided that the michael@0: * above copyright notice and the following two paragraphs appear in michael@0: * all copies of this software. michael@0: * michael@0: * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR michael@0: * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES michael@0: * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN michael@0: * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH michael@0: * DAMAGE. michael@0: * michael@0: * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, michael@0: * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND michael@0: * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS michael@0: * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO michael@0: * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. michael@0: * michael@0: * Red Hat Author(s): Behdad Esfahbod michael@0: * Codethink Author(s): Ryan Lortie michael@0: * Google Author(s): Behdad Esfahbod michael@0: */ michael@0: michael@0: #include "hb-private.hh" michael@0: michael@0: #include "hb-unicode-private.hh" michael@0: michael@0: michael@0: michael@0: /* michael@0: * hb_unicode_funcs_t michael@0: */ michael@0: michael@0: static hb_unicode_combining_class_t michael@0: hb_unicode_combining_class_nil (hb_unicode_funcs_t *ufuncs HB_UNUSED, michael@0: hb_codepoint_t unicode HB_UNUSED, michael@0: void *user_data HB_UNUSED) michael@0: { michael@0: return HB_UNICODE_COMBINING_CLASS_NOT_REORDERED; michael@0: } michael@0: michael@0: static unsigned int michael@0: hb_unicode_eastasian_width_nil (hb_unicode_funcs_t *ufuncs HB_UNUSED, michael@0: hb_codepoint_t unicode HB_UNUSED, michael@0: void *user_data HB_UNUSED) michael@0: { michael@0: return 1; michael@0: } michael@0: michael@0: static hb_unicode_general_category_t michael@0: hb_unicode_general_category_nil (hb_unicode_funcs_t *ufuncs HB_UNUSED, michael@0: hb_codepoint_t unicode HB_UNUSED, michael@0: void *user_data HB_UNUSED) michael@0: { michael@0: return HB_UNICODE_GENERAL_CATEGORY_OTHER_LETTER; michael@0: } michael@0: michael@0: static hb_codepoint_t michael@0: hb_unicode_mirroring_nil (hb_unicode_funcs_t *ufuncs HB_UNUSED, michael@0: hb_codepoint_t unicode HB_UNUSED, michael@0: void *user_data HB_UNUSED) michael@0: { michael@0: return unicode; michael@0: } michael@0: michael@0: static hb_script_t michael@0: hb_unicode_script_nil (hb_unicode_funcs_t *ufuncs HB_UNUSED, michael@0: hb_codepoint_t unicode HB_UNUSED, michael@0: void *user_data HB_UNUSED) michael@0: { michael@0: return HB_SCRIPT_UNKNOWN; michael@0: } michael@0: michael@0: static hb_bool_t michael@0: hb_unicode_compose_nil (hb_unicode_funcs_t *ufuncs HB_UNUSED, michael@0: hb_codepoint_t a HB_UNUSED, michael@0: hb_codepoint_t b HB_UNUSED, michael@0: hb_codepoint_t *ab HB_UNUSED, michael@0: void *user_data HB_UNUSED) michael@0: { michael@0: return false; michael@0: } michael@0: michael@0: static hb_bool_t michael@0: hb_unicode_decompose_nil (hb_unicode_funcs_t *ufuncs HB_UNUSED, michael@0: hb_codepoint_t ab HB_UNUSED, michael@0: hb_codepoint_t *a HB_UNUSED, michael@0: hb_codepoint_t *b HB_UNUSED, michael@0: void *user_data HB_UNUSED) michael@0: { michael@0: return false; michael@0: } michael@0: michael@0: michael@0: static unsigned int michael@0: hb_unicode_decompose_compatibility_nil (hb_unicode_funcs_t *ufuncs HB_UNUSED, michael@0: hb_codepoint_t u HB_UNUSED, michael@0: hb_codepoint_t *decomposed HB_UNUSED, michael@0: void *user_data HB_UNUSED) michael@0: { michael@0: return 0; michael@0: } michael@0: michael@0: michael@0: #define HB_UNICODE_FUNCS_IMPLEMENT_SET \ michael@0: HB_UNICODE_FUNCS_IMPLEMENT (glib) \ michael@0: HB_UNICODE_FUNCS_IMPLEMENT (icu) \ michael@0: HB_UNICODE_FUNCS_IMPLEMENT (ucdn) \ michael@0: HB_UNICODE_FUNCS_IMPLEMENT (nil) \ michael@0: /* ^--- Add new callbacks before nil */ michael@0: michael@0: #define hb_nil_get_unicode_funcs hb_unicode_funcs_get_empty michael@0: michael@0: /* Prototype them all */ michael@0: #define HB_UNICODE_FUNCS_IMPLEMENT(set) \ michael@0: extern "C" hb_unicode_funcs_t *hb_##set##_get_unicode_funcs (void); michael@0: HB_UNICODE_FUNCS_IMPLEMENT_SET michael@0: #undef HB_UNICODE_FUNCS_IMPLEMENT michael@0: michael@0: michael@0: hb_unicode_funcs_t * michael@0: hb_unicode_funcs_get_default (void) michael@0: { michael@0: #define HB_UNICODE_FUNCS_IMPLEMENT(set) \ michael@0: return hb_##set##_get_unicode_funcs (); michael@0: michael@0: #ifdef HAVE_GLIB michael@0: HB_UNICODE_FUNCS_IMPLEMENT(glib) michael@0: #elif 0 && defined(HAVE_ICU) michael@0: HB_UNICODE_FUNCS_IMPLEMENT(icu) michael@0: #elif defined(HAVE_UCDN) michael@0: HB_UNICODE_FUNCS_IMPLEMENT(ucdn) michael@0: #else michael@0: #define HB_UNICODE_FUNCS_NIL 1 michael@0: HB_UNICODE_FUNCS_IMPLEMENT(nil) michael@0: #endif michael@0: michael@0: #undef HB_UNICODE_FUNCS_IMPLEMENT michael@0: } michael@0: michael@0: #if !defined(HB_NO_UNICODE_FUNCS) && defined(HB_UNICODE_FUNCS_NIL) michael@0: #pragma message("Could not find any Unicode functions implementation, you have to provide your own.") michael@0: #pragma message("To suppress this warnings, define HB_NO_UNICODE_FUNCS.") michael@0: #endif michael@0: michael@0: /** michael@0: * hb_unicode_funcs_create: (Xconstructor) michael@0: * @parent: (allow-none): michael@0: * michael@0: * michael@0: * michael@0: * Return value: (transfer full): michael@0: * michael@0: * Since: 1.0 michael@0: **/ michael@0: hb_unicode_funcs_t * michael@0: hb_unicode_funcs_create (hb_unicode_funcs_t *parent) michael@0: { michael@0: hb_unicode_funcs_t *ufuncs; michael@0: michael@0: if (!(ufuncs = hb_object_create ())) michael@0: return hb_unicode_funcs_get_empty (); michael@0: michael@0: if (!parent) michael@0: parent = hb_unicode_funcs_get_empty (); michael@0: michael@0: hb_unicode_funcs_make_immutable (parent); michael@0: ufuncs->parent = hb_unicode_funcs_reference (parent); michael@0: michael@0: ufuncs->func = parent->func; michael@0: michael@0: /* We can safely copy user_data from parent since we hold a reference michael@0: * onto it and it's immutable. We should not copy the destroy notifiers michael@0: * though. */ michael@0: ufuncs->user_data = parent->user_data; michael@0: michael@0: return ufuncs; michael@0: } michael@0: michael@0: michael@0: const hb_unicode_funcs_t _hb_unicode_funcs_nil = { michael@0: HB_OBJECT_HEADER_STATIC, michael@0: michael@0: NULL, /* parent */ michael@0: true, /* immutable */ michael@0: { michael@0: #define HB_UNICODE_FUNC_IMPLEMENT(name) hb_unicode_##name##_nil, michael@0: HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS michael@0: #undef HB_UNICODE_FUNC_IMPLEMENT michael@0: } michael@0: }; michael@0: michael@0: /** michael@0: * hb_unicode_funcs_get_empty: michael@0: * michael@0: * michael@0: * michael@0: * Return value: (transfer full): michael@0: * michael@0: * Since: 1.0 michael@0: **/ michael@0: hb_unicode_funcs_t * michael@0: hb_unicode_funcs_get_empty (void) michael@0: { michael@0: return const_cast (&_hb_unicode_funcs_nil); michael@0: } michael@0: michael@0: /** michael@0: * hb_unicode_funcs_reference: (skip) michael@0: * @ufuncs: Unicode functions. michael@0: * michael@0: * michael@0: * michael@0: * Return value: (transfer full): michael@0: * michael@0: * Since: 1.0 michael@0: **/ michael@0: hb_unicode_funcs_t * michael@0: hb_unicode_funcs_reference (hb_unicode_funcs_t *ufuncs) michael@0: { michael@0: return hb_object_reference (ufuncs); michael@0: } michael@0: michael@0: /** michael@0: * hb_unicode_funcs_destroy: (skip) michael@0: * @ufuncs: Unicode functions. michael@0: * michael@0: * michael@0: * michael@0: * Since: 1.0 michael@0: **/ michael@0: void michael@0: hb_unicode_funcs_destroy (hb_unicode_funcs_t *ufuncs) michael@0: { michael@0: if (!hb_object_destroy (ufuncs)) return; michael@0: michael@0: #define HB_UNICODE_FUNC_IMPLEMENT(name) \ michael@0: if (ufuncs->destroy.name) ufuncs->destroy.name (ufuncs->user_data.name); michael@0: HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS michael@0: #undef HB_UNICODE_FUNC_IMPLEMENT michael@0: michael@0: hb_unicode_funcs_destroy (ufuncs->parent); michael@0: michael@0: free (ufuncs); michael@0: } michael@0: michael@0: /** michael@0: * hb_unicode_funcs_set_user_data: (skip) michael@0: * @ufuncs: Unicode functions. michael@0: * @key: michael@0: * @data: michael@0: * @destroy: michael@0: * @replace: michael@0: * michael@0: * michael@0: * michael@0: * Return value: michael@0: * michael@0: * Since: 1.0 michael@0: **/ michael@0: hb_bool_t michael@0: hb_unicode_funcs_set_user_data (hb_unicode_funcs_t *ufuncs, michael@0: hb_user_data_key_t *key, michael@0: void * data, michael@0: hb_destroy_func_t destroy, michael@0: hb_bool_t replace) michael@0: { michael@0: return hb_object_set_user_data (ufuncs, key, data, destroy, replace); michael@0: } michael@0: michael@0: /** michael@0: * hb_unicode_funcs_get_user_data: (skip) michael@0: * @ufuncs: Unicode functions. michael@0: * @key: michael@0: * michael@0: * michael@0: * michael@0: * Return value: (transfer none): michael@0: * michael@0: * Since: 1.0 michael@0: **/ michael@0: void * michael@0: hb_unicode_funcs_get_user_data (hb_unicode_funcs_t *ufuncs, michael@0: hb_user_data_key_t *key) michael@0: { michael@0: return hb_object_get_user_data (ufuncs, key); michael@0: } michael@0: michael@0: michael@0: /** michael@0: * hb_unicode_funcs_make_immutable: michael@0: * @ufuncs: Unicode functions. michael@0: * michael@0: * michael@0: * michael@0: * Since: 1.0 michael@0: **/ michael@0: void michael@0: hb_unicode_funcs_make_immutable (hb_unicode_funcs_t *ufuncs) michael@0: { michael@0: if (hb_object_is_inert (ufuncs)) michael@0: return; michael@0: michael@0: ufuncs->immutable = true; michael@0: } michael@0: michael@0: /** michael@0: * hb_unicode_funcs_is_immutable: michael@0: * @ufuncs: Unicode functions. michael@0: * michael@0: * michael@0: * michael@0: * Return value: michael@0: * michael@0: * Since: 1.0 michael@0: **/ michael@0: hb_bool_t michael@0: hb_unicode_funcs_is_immutable (hb_unicode_funcs_t *ufuncs) michael@0: { michael@0: return ufuncs->immutable; michael@0: } michael@0: michael@0: /** michael@0: * hb_unicode_funcs_get_parent: michael@0: * @ufuncs: Unicode functions. michael@0: * michael@0: * michael@0: * michael@0: * Return value: michael@0: * michael@0: * Since: 1.0 michael@0: **/ michael@0: hb_unicode_funcs_t * michael@0: hb_unicode_funcs_get_parent (hb_unicode_funcs_t *ufuncs) michael@0: { michael@0: return ufuncs->parent ? ufuncs->parent : hb_unicode_funcs_get_empty (); michael@0: } michael@0: michael@0: michael@0: #define HB_UNICODE_FUNC_IMPLEMENT(name) \ michael@0: \ michael@0: void \ michael@0: hb_unicode_funcs_set_##name##_func (hb_unicode_funcs_t *ufuncs, \ michael@0: hb_unicode_##name##_func_t func, \ michael@0: void *user_data, \ michael@0: hb_destroy_func_t destroy) \ michael@0: { \ michael@0: if (ufuncs->immutable) \ michael@0: return; \ michael@0: \ michael@0: if (ufuncs->destroy.name) \ michael@0: ufuncs->destroy.name (ufuncs->user_data.name); \ michael@0: \ michael@0: if (func) { \ michael@0: ufuncs->func.name = func; \ michael@0: ufuncs->user_data.name = user_data; \ michael@0: ufuncs->destroy.name = destroy; \ michael@0: } else { \ michael@0: ufuncs->func.name = ufuncs->parent->func.name; \ michael@0: ufuncs->user_data.name = ufuncs->parent->user_data.name; \ michael@0: ufuncs->destroy.name = NULL; \ michael@0: } \ michael@0: } michael@0: michael@0: HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS michael@0: #undef HB_UNICODE_FUNC_IMPLEMENT michael@0: michael@0: michael@0: #define HB_UNICODE_FUNC_IMPLEMENT(return_type, name) \ michael@0: \ michael@0: return_type \ michael@0: hb_unicode_##name (hb_unicode_funcs_t *ufuncs, \ michael@0: hb_codepoint_t unicode) \ michael@0: { \ michael@0: return ufuncs->name (unicode); \ michael@0: } michael@0: HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS_SIMPLE michael@0: #undef HB_UNICODE_FUNC_IMPLEMENT michael@0: michael@0: /** michael@0: * hb_unicode_compose: michael@0: * @ufuncs: Unicode functions. michael@0: * @a: michael@0: * @b: michael@0: * @ab: (out): michael@0: * michael@0: * michael@0: * michael@0: * Return value: michael@0: * michael@0: * Since: 1.0 michael@0: **/ michael@0: hb_bool_t michael@0: hb_unicode_compose (hb_unicode_funcs_t *ufuncs, michael@0: hb_codepoint_t a, michael@0: hb_codepoint_t b, michael@0: hb_codepoint_t *ab) michael@0: { michael@0: return ufuncs->compose (a, b, ab); michael@0: } michael@0: michael@0: /** michael@0: * hb_unicode_decompose: michael@0: * @ufuncs: Unicode functions. michael@0: * @ab: michael@0: * @a: (out): michael@0: * @b: (out): michael@0: * michael@0: * michael@0: * michael@0: * Return value: michael@0: * michael@0: * Since: 1.0 michael@0: **/ michael@0: hb_bool_t michael@0: hb_unicode_decompose (hb_unicode_funcs_t *ufuncs, michael@0: hb_codepoint_t ab, michael@0: hb_codepoint_t *a, michael@0: hb_codepoint_t *b) michael@0: { michael@0: return ufuncs->decompose (ab, a, b); michael@0: } michael@0: michael@0: /** michael@0: * hb_unicode_decompose_compatibility: michael@0: * @ufuncs: Unicode functions. michael@0: * @u: michael@0: * @decomposed: (out): michael@0: * michael@0: * michael@0: * michael@0: * Return value: michael@0: * michael@0: * Since: 1.0 michael@0: **/ michael@0: unsigned int michael@0: hb_unicode_decompose_compatibility (hb_unicode_funcs_t *ufuncs, michael@0: hb_codepoint_t u, michael@0: hb_codepoint_t *decomposed) michael@0: { michael@0: return ufuncs->decompose_compatibility (u, decomposed); michael@0: } michael@0: michael@0: michael@0: /* See hb-unicode-private.hh for details. */ michael@0: const uint8_t michael@0: _hb_modified_combining_class[256] = michael@0: { michael@0: 0, /* HB_UNICODE_COMBINING_CLASS_NOT_REORDERED */ michael@0: 1, /* HB_UNICODE_COMBINING_CLASS_OVERLAY */ michael@0: 2, 3, 4, 5, 6, michael@0: 7, /* HB_UNICODE_COMBINING_CLASS_NUKTA */ michael@0: 8, /* HB_UNICODE_COMBINING_CLASS_KANA_VOICING */ michael@0: 9, /* HB_UNICODE_COMBINING_CLASS_VIRAMA */ michael@0: michael@0: /* Hebrew */ michael@0: HB_MODIFIED_COMBINING_CLASS_CCC10, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC11, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC12, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC13, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC14, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC15, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC16, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC17, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC18, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC19, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC20, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC21, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC22, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC23, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC24, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC25, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC26, michael@0: michael@0: /* Arabic */ michael@0: HB_MODIFIED_COMBINING_CLASS_CCC27, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC28, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC29, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC30, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC31, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC32, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC33, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC34, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC35, michael@0: michael@0: /* Syriac */ michael@0: HB_MODIFIED_COMBINING_CLASS_CCC36, michael@0: michael@0: 37, 38, 39, michael@0: 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, michael@0: 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, michael@0: 80, 81, 82, 83, michael@0: michael@0: /* Telugu */ michael@0: HB_MODIFIED_COMBINING_CLASS_CCC84, michael@0: 85, 86, 87, 88, 89, 90, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC91, michael@0: 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, michael@0: michael@0: /* Thai */ michael@0: HB_MODIFIED_COMBINING_CLASS_CCC103, michael@0: 104, 105, 106, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC107, michael@0: 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, michael@0: michael@0: /* Lao */ michael@0: HB_MODIFIED_COMBINING_CLASS_CCC118, michael@0: 119, 120, 121, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC122, michael@0: 123, 124, 125, 126, 127, 128, michael@0: michael@0: /* Tibetan */ michael@0: HB_MODIFIED_COMBINING_CLASS_CCC129, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC130, michael@0: 131, michael@0: HB_MODIFIED_COMBINING_CLASS_CCC132, michael@0: 133, 134, 135, 136, 137, 138, 139, michael@0: michael@0: michael@0: 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, michael@0: 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, michael@0: 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, michael@0: 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, michael@0: 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, michael@0: 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, michael@0: michael@0: 200, /* HB_UNICODE_COMBINING_CLASS_ATTACHED_BELOW_LEFT */ michael@0: 201, michael@0: 202, /* HB_UNICODE_COMBINING_CLASS_ATTACHED_BELOW */ michael@0: 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, michael@0: 214, /* HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE */ michael@0: 215, michael@0: 216, /* HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE_RIGHT */ michael@0: 217, michael@0: 218, /* HB_UNICODE_COMBINING_CLASS_BELOW_LEFT */ michael@0: 219, michael@0: 220, /* HB_UNICODE_COMBINING_CLASS_BELOW */ michael@0: 221, michael@0: 222, /* HB_UNICODE_COMBINING_CLASS_BELOW_RIGHT */ michael@0: 223, michael@0: 224, /* HB_UNICODE_COMBINING_CLASS_LEFT */ michael@0: 225, michael@0: 226, /* HB_UNICODE_COMBINING_CLASS_RIGHT */ michael@0: 227, michael@0: 228, /* HB_UNICODE_COMBINING_CLASS_ABOVE_LEFT */ michael@0: 229, michael@0: 230, /* HB_UNICODE_COMBINING_CLASS_ABOVE */ michael@0: 231, michael@0: 232, /* HB_UNICODE_COMBINING_CLASS_ABOVE_RIGHT */ michael@0: 233, /* HB_UNICODE_COMBINING_CLASS_DOUBLE_BELOW */ michael@0: 234, /* HB_UNICODE_COMBINING_CLASS_DOUBLE_ABOVE */ michael@0: 235, 236, 237, 238, 239, michael@0: 240, /* HB_UNICODE_COMBINING_CLASS_IOTA_SUBSCRIPT */ michael@0: 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, michael@0: 255, /* HB_UNICODE_COMBINING_CLASS_INVALID */ michael@0: };