OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2007,2008,2009,2010 Red Hat, Inc. | 2 * Copyright © 2007,2008,2009,2010 Red Hat, Inc. |
3 * Copyright © 2012 Google, Inc. | 3 * Copyright © 2012 Google, Inc. |
4 * | 4 * |
5 * This is part of HarfBuzz, a text shaping library. | 5 * This is part of HarfBuzz, a text shaping library. |
6 * | 6 * |
7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
(...skipping 13 matching lines...) Expand all Loading... |
24 * | 24 * |
25 * Red Hat Author(s): Behdad Esfahbod | 25 * Red Hat Author(s): Behdad Esfahbod |
26 * Google Author(s): Behdad Esfahbod | 26 * Google Author(s): Behdad Esfahbod |
27 */ | 27 */ |
28 | 28 |
29 #ifndef HB_OPEN_TYPE_PRIVATE_HH | 29 #ifndef HB_OPEN_TYPE_PRIVATE_HH |
30 #define HB_OPEN_TYPE_PRIVATE_HH | 30 #define HB_OPEN_TYPE_PRIVATE_HH |
31 | 31 |
32 #include "hb-private.hh" | 32 #include "hb-private.hh" |
33 | 33 |
34 #include "hb-blob.h" | |
35 | |
36 | 34 |
37 namespace OT { | 35 namespace OT { |
38 | 36 |
39 | 37 |
40 | 38 |
41 /* | 39 /* |
42 * Casts | 40 * Casts |
43 */ | 41 */ |
44 | 42 |
45 /* Cast to struct T, reference to reference */ | 43 /* Cast to struct T, reference to reference */ |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 typedef USHORT UFWORD; | 585 typedef USHORT UFWORD; |
588 | 586 |
589 /* Date represented in number of seconds since 12:00 midnight, January 1, | 587 /* Date represented in number of seconds since 12:00 midnight, January 1, |
590 * 1904. The value is represented as a signed 64-bit integer. */ | 588 * 1904. The value is represented as a signed 64-bit integer. */ |
591 struct LONGDATETIME | 589 struct LONGDATETIME |
592 { | 590 { |
593 inline bool sanitize (hb_sanitize_context_t *c) { | 591 inline bool sanitize (hb_sanitize_context_t *c) { |
594 TRACE_SANITIZE (this); | 592 TRACE_SANITIZE (this); |
595 return TRACE_RETURN (likely (c->check_struct (this))); | 593 return TRACE_RETURN (likely (c->check_struct (this))); |
596 } | 594 } |
597 private: | 595 protected: |
598 LONG major; | 596 LONG major; |
599 ULONG minor; | 597 ULONG minor; |
600 public: | 598 public: |
601 DEFINE_SIZE_STATIC (8); | 599 DEFINE_SIZE_STATIC (8); |
602 }; | 600 }; |
603 | 601 |
604 /* Array of four uint8s (length = 32 bits) used to identify a script, language | 602 /* Array of four uint8s (length = 32 bits) used to identify a script, language |
605 * system, feature, or baseline */ | 603 * system, feature, or baseline */ |
606 struct Tag : ULONG | 604 struct Tag : ULONG |
607 { | 605 { |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 } | 970 } |
973 return -1; | 971 return -1; |
974 } | 972 } |
975 }; | 973 }; |
976 | 974 |
977 | 975 |
978 } /* namespace OT */ | 976 } /* namespace OT */ |
979 | 977 |
980 | 978 |
981 #endif /* HB_OPEN_TYPE_PRIVATE_HH */ | 979 #endif /* HB_OPEN_TYPE_PRIVATE_HH */ |
OLD | NEW |