| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2009 Red Hat, Inc. | 2 * Copyright © 2009 Red Hat, Inc. |
| 3 * Copyright © 2009 Keith Stribley | 3 * Copyright © 2009 Keith Stribley |
| 4 * Copyright © 2011 Google, Inc. | 4 * Copyright © 2011 Google, Inc. |
| 5 * | 5 * |
| 6 * This is part of HarfBuzz, a text shaping library. | 6 * This is part of HarfBuzz, a text shaping library. |
| 7 * | 7 * |
| 8 * Permission is hereby granted, without written agreement and without | 8 * Permission is hereby granted, without written agreement and without |
| 9 * license or royalty fees, to use, copy, modify, and distribute this | 9 * license or royalty fees, to use, copy, modify, and distribute this |
| 10 * software and its documentation for any purpose, provided that the | 10 * software and its documentation for any purpose, provided that the |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 #define HB_UNICODE_FUNC_IMPLEMENT(name) hb_icu_unicode_##name, | 356 #define HB_UNICODE_FUNC_IMPLEMENT(name) hb_icu_unicode_##name, |
| 357 HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS | 357 HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS |
| 358 #undef HB_UNICODE_FUNC_IMPLEMENT | 358 #undef HB_UNICODE_FUNC_IMPLEMENT |
| 359 } | 359 } |
| 360 }; | 360 }; |
| 361 | 361 |
| 362 #if U_ICU_VERSION_MAJOR_NUM >= 49 | 362 #if U_ICU_VERSION_MAJOR_NUM >= 49 |
| 363 if (!hb_atomic_ptr_get (&normalizer)) { | 363 if (!hb_atomic_ptr_get (&normalizer)) { |
| 364 UErrorCode icu_err = U_ZERO_ERROR; | 364 UErrorCode icu_err = U_ZERO_ERROR; |
| 365 /* We ignore failure in getNFCInstace(). */ | 365 /* We ignore failure in getNFCInstace(). */ |
| 366 hb_atomic_ptr_cmpexch (&normalizer, NULL, unorm2_getNFCInstance (&icu_err)); | 366 (void) hb_atomic_ptr_cmpexch (&normalizer, NULL, unorm2_getNFCInstance (&icu
_err)); |
| 367 } | 367 } |
| 368 #endif | 368 #endif |
| 369 return const_cast<hb_unicode_funcs_t *> (&_hb_icu_unicode_funcs); | 369 return const_cast<hb_unicode_funcs_t *> (&_hb_icu_unicode_funcs); |
| 370 } | 370 } |
| 371 | |
| 372 | |
| OLD | NEW |