| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2009 Red Hat, Inc. | 2 * Copyright © 2009 Red Hat, Inc. |
| 3 * Copyright © 2011 Codethink Limited | 3 * Copyright © 2011 Codethink Limited |
| 4 * Copyright © 2010,2011,2012 Google, Inc. | 4 * Copyright © 2010,2011,2012 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 SPACE_FIGURE, | 217 SPACE_FIGURE, |
| 218 SPACE_PUNCTUATION, | 218 SPACE_PUNCTUATION, |
| 219 SPACE_NARROW, | 219 SPACE_NARROW, |
| 220 }; | 220 }; |
| 221 static inline space_t | 221 static inline space_t |
| 222 space_fallback_type (hb_codepoint_t u) | 222 space_fallback_type (hb_codepoint_t u) |
| 223 { | 223 { |
| 224 switch (u) | 224 switch (u) |
| 225 { | 225 { |
| 226 /* All GC=Zs chars that can use a fallback. */ | 226 /* All GC=Zs chars that can use a fallback. */ |
| 227 default:» return NOT_SPACE;» /* Shouldn't happen. */ | 227 default:» return NOT_SPACE;» /* U+1680 OGHAM SPACE MARK */ |
| 228 case 0x0020u: return SPACE; /* U+0020 SPACE */ | 228 case 0x0020u: return SPACE; /* U+0020 SPACE */ |
| 229 case 0x00A0u: return SPACE; /* U+00A0 NO-BREAK SPACE */ | 229 case 0x00A0u: return SPACE; /* U+00A0 NO-BREAK SPACE */ |
| 230 case 0x2000u: return SPACE_EM_2; /* U+2000 EN QUAD */ | 230 case 0x2000u: return SPACE_EM_2; /* U+2000 EN QUAD */ |
| 231 case 0x2001u: return SPACE_EM; /* U+2001 EM QUAD */ | 231 case 0x2001u: return SPACE_EM; /* U+2001 EM QUAD */ |
| 232 case 0x2002u: return SPACE_EM_2; /* U+2002 EN SPACE */ | 232 case 0x2002u: return SPACE_EM_2; /* U+2002 EN SPACE */ |
| 233 case 0x2003u: return SPACE_EM; /* U+2003 EM SPACE */ | 233 case 0x2003u: return SPACE_EM; /* U+2003 EM SPACE */ |
| 234 case 0x2004u: return SPACE_EM_3; /* U+2004 THREE-PER-EM SPACE */ | 234 case 0x2004u: return SPACE_EM_3; /* U+2004 THREE-PER-EM SPACE */ |
| 235 case 0x2005u: return SPACE_EM_4; /* U+2005 FOUR-PER-EM SPACE */ | 235 case 0x2005u: return SPACE_EM_4; /* U+2005 FOUR-PER-EM SPACE */ |
| 236 case 0x2006u: return SPACE_EM_6; /* U+2006 SIX-PER-EM SPACE */ | 236 case 0x2006u: return SPACE_EM_6; /* U+2006 SIX-PER-EM SPACE */ |
| 237 case 0x2007u: return SPACE_FIGURE; /* U+2007 FIGURE SPACE */ | 237 case 0x2007u: return SPACE_FIGURE; /* U+2007 FIGURE SPACE */ |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 FLAG (HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK) | \ | 357 FLAG (HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK) | \ |
| 358 FLAG (HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK))) | 358 FLAG (HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK))) |
| 359 | 359 |
| 360 #define HB_UNICODE_GENERAL_CATEGORY_IS_NON_ENCLOSING_MARK_OR_MODIFIER_SYMBOL(gen
_cat) \ | 360 #define HB_UNICODE_GENERAL_CATEGORY_IS_NON_ENCLOSING_MARK_OR_MODIFIER_SYMBOL(gen
_cat) \ |
| 361 (FLAG_SAFE (gen_cat) & \ | 361 (FLAG_SAFE (gen_cat) & \ |
| 362 (FLAG (HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK) | \ | 362 (FLAG (HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK) | \ |
| 363 FLAG (HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK) | \ | 363 FLAG (HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK) | \ |
| 364 FLAG (HB_UNICODE_GENERAL_CATEGORY_MODIFIER_SYMBOL))) | 364 FLAG (HB_UNICODE_GENERAL_CATEGORY_MODIFIER_SYMBOL))) |
| 365 | 365 |
| 366 #endif /* HB_UNICODE_PRIVATE_HH */ | 366 #endif /* HB_UNICODE_PRIVATE_HH */ |
| OLD | NEW |