| 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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 typedef IntType<uint32_t, 4> ULONG; /* 32-bit unsigned integer. */ | 655 typedef IntType<uint32_t, 4> ULONG; /* 32-bit unsigned integer. */ |
| 656 typedef IntType<int32_t, 4> LONG; /* 32-bit signed integer. */ | 656 typedef IntType<int32_t, 4> LONG; /* 32-bit signed integer. */ |
| 657 typedef IntType<uint32_t, 3> UINT24; /* 24-bit unsigned integer. */ | 657 typedef IntType<uint32_t, 3> UINT24; /* 24-bit unsigned integer. */ |
| 658 | 658 |
| 659 /* 16-bit signed integer (SHORT) that describes a quantity in FUnits. */ | 659 /* 16-bit signed integer (SHORT) that describes a quantity in FUnits. */ |
| 660 typedef SHORT FWORD; | 660 typedef SHORT FWORD; |
| 661 | 661 |
| 662 /* 16-bit unsigned integer (USHORT) that describes a quantity in FUnits. */ | 662 /* 16-bit unsigned integer (USHORT) that describes a quantity in FUnits. */ |
| 663 typedef USHORT UFWORD; | 663 typedef USHORT UFWORD; |
| 664 | 664 |
| 665 /* 16-bit signed fixed number with the low 14 bits of fraction (2.14). */ |
| 666 struct F2DOT14 : SHORT |
| 667 { |
| 668 //inline float to_float (void) const { return ???; } |
| 669 //inline void set_float (float f) { v.set (f * ???); } |
| 670 public: |
| 671 DEFINE_SIZE_STATIC (2); |
| 672 }; |
| 673 |
| 665 /* Date represented in number of seconds since 12:00 midnight, January 1, | 674 /* Date represented in number of seconds since 12:00 midnight, January 1, |
| 666 * 1904. The value is represented as a signed 64-bit integer. */ | 675 * 1904. The value is represented as a signed 64-bit integer. */ |
| 667 struct LONGDATETIME | 676 struct LONGDATETIME |
| 668 { | 677 { |
| 669 inline bool sanitize (hb_sanitize_context_t *c) const | 678 inline bool sanitize (hb_sanitize_context_t *c) const |
| 670 { | 679 { |
| 671 TRACE_SANITIZE (this); | 680 TRACE_SANITIZE (this); |
| 672 return_trace (likely (c->check_struct (this))); | 681 return_trace (likely (c->check_struct (this))); |
| 673 } | 682 } |
| 674 protected: | 683 protected: |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 } | 1044 } |
| 1036 return -1; | 1045 return -1; |
| 1037 } | 1046 } |
| 1038 }; | 1047 }; |
| 1039 | 1048 |
| 1040 | 1049 |
| 1041 } /* namespace OT */ | 1050 } /* namespace OT */ |
| 1042 | 1051 |
| 1043 | 1052 |
| 1044 #endif /* HB_OPEN_TYPE_PRIVATE_HH */ | 1053 #endif /* HB_OPEN_TYPE_PRIVATE_HH */ |
| OLD | NEW |