Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/harfbuzz-ng/src/hb-icu.cc

Issue 1874153002: Roll HarfBuzz to 1.2.6 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 18 matching lines...) Expand all
29 29
30 #include "hb-private.hh" 30 #include "hb-private.hh"
31 31
32 #include "hb-icu.h" 32 #include "hb-icu.h"
33 33
34 #include "hb-unicode-private.hh" 34 #include "hb-unicode-private.hh"
35 35
36 #include <unicode/uchar.h> 36 #include <unicode/uchar.h>
37 #include <unicode/unorm.h> 37 #include <unicode/unorm.h>
38 #include <unicode/ustring.h> 38 #include <unicode/ustring.h>
39 #include <unicode/utf16.h>
39 #include <unicode/uversion.h> 40 #include <unicode/uversion.h>
40 41
41 42
42 hb_script_t 43 hb_script_t
43 hb_icu_script_to_script (UScriptCode script) 44 hb_icu_script_to_script (UScriptCode script)
44 { 45 {
45 if (unlikely (script == USCRIPT_INVALID_CODE)) 46 if (unlikely (script == USCRIPT_INVALID_CODE))
46 return HB_SCRIPT_INVALID; 47 return HB_SCRIPT_INVALID;
47 48
48 return hb_script_from_string (uscript_getShortName (script), -1); 49 return hb_script_from_string (uscript_getShortName (script), -1);
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 362
362 #if U_ICU_VERSION_MAJOR_NUM >= 49 363 #if U_ICU_VERSION_MAJOR_NUM >= 49
363 if (!hb_atomic_ptr_get (&normalizer)) { 364 if (!hb_atomic_ptr_get (&normalizer)) {
364 UErrorCode icu_err = U_ZERO_ERROR; 365 UErrorCode icu_err = U_ZERO_ERROR;
365 /* We ignore failure in getNFCInstace(). */ 366 /* We ignore failure in getNFCInstace(). */
366 (void) hb_atomic_ptr_cmpexch (&normalizer, NULL, unorm2_getNFCInstance (&icu _err)); 367 (void) hb_atomic_ptr_cmpexch (&normalizer, NULL, unorm2_getNFCInstance (&icu _err));
367 } 368 }
368 #endif 369 #endif
369 return const_cast<hb_unicode_funcs_t *> (&_hb_icu_unicode_funcs); 370 return const_cast<hb_unicode_funcs_t *> (&_hb_icu_unicode_funcs);
370 } 371 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ft.cc ('k') | third_party/harfbuzz-ng/src/hb-open-type-private.hh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698