inline bool single_substitute (hb_codepoint_t &glyph_id) const {
unsigned int index = (this+coverage) (glyph_id);
- if (G_LIKELY (index == NOT_COVERED))
+ if (HB_LIKELY (index == NOT_COVERED))
return false;
glyph_id += deltaGlyphID;
inline bool single_substitute (hb_codepoint_t &glyph_id) const {
unsigned int index = (this+coverage) (glyph_id);
- if (G_LIKELY (index == NOT_COVERED))
+ if (HB_LIKELY (index == NOT_COVERED))
return false;
- if (G_UNLIKELY (index >= substitute.len))
+ if (HB_UNLIKELY (index >= substitute.len))
return false;
glyph_id = substitute[index];
inline bool substitute (LOOKUP_ARGS_DEF) const {
unsigned int index = (this+coverage) (IN_CURGLYPH ());
- if (G_LIKELY (index == NOT_COVERED))
+ if (HB_LIKELY (index == NOT_COVERED))
return false;
return (this+sequence[index]).substitute_sequence (LOOKUP_ARGS);
hb_codepoint_t glyph_id = IN_CURGLYPH ();
unsigned int index = (this+coverage) (glyph_id);
- if (G_LIKELY (index == NOT_COVERED))
+ if (HB_LIKELY (index == NOT_COVERED))
return false;
const AlternateSet &alt_set = this+alternateSet[index];
property & LookupFlag::MarkAttachmentType);
unsigned int index = (this+coverage) (glyph_id);
- if (G_LIKELY (index == NOT_COVERED))
+ if (HB_LIKELY (index == NOT_COVERED))
return false;
const LigatureSet &lig_set = this+ligatureSet[index];
inline bool apply (LOOKUP_ARGS_DEF, apply_lookup_func_t apply_func) const {
unsigned int index = (this+coverage) (IN_CURGLYPH ());
- if (G_LIKELY (index == NOT_COVERED))
+ if (HB_LIKELY (index == NOT_COVERED))
return false;
const RuleSet &rule_set = this+ruleSet[index];
inline bool apply (LOOKUP_ARGS_DEF, apply_lookup_func_t apply_func) const {
unsigned int index = (this+coverage) (IN_CURGLYPH ());
- if (G_LIKELY (index == NOT_COVERED))
+ if (HB_LIKELY (index == NOT_COVERED))
return false;
const ClassDef &class_def = this+classDef;
inline bool apply (LOOKUP_ARGS_DEF, apply_lookup_func_t apply_func) const {
unsigned int index = (this+coverage[0]) (IN_CURGLYPH ());
- if (G_LIKELY (index == NOT_COVERED))
+ if (HB_LIKELY (index == NOT_COVERED))
return false;
const LookupRecord *lookupRecord = (const LookupRecord *)
inline bool apply (LOOKUP_ARGS_DEF, apply_lookup_func_t apply_func) const {
unsigned int index = (this+coverage) (IN_CURGLYPH ());
- if (G_LIKELY (index == NOT_COVERED))
+ if (HB_LIKELY (index == NOT_COVERED))
return false;
const ChainRuleSet &rule_set = this+ruleSet[index];
inline bool apply (LOOKUP_ARGS_DEF, apply_lookup_func_t apply_func) const {
unsigned int index = (this+coverage) (IN_CURGLYPH ());
- if (G_LIKELY (index == NOT_COVERED))
+ if (HB_LIKELY (index == NOT_COVERED))
return false;
const ClassDef &backtrack_class_def = this+backtrackClassDef;
((const char *) &backtrack + backtrack.get_size ());
unsigned int index = (this+input[0]) (IN_CURGLYPH ());
- if (G_LIKELY (index == NOT_COVERED))
+ if (HB_LIKELY (index == NOT_COVERED))
return false;
const OffsetArrayOf<Coverage> &lookahead = * (const OffsetArrayOf<Coverage> *)
private:
inline const char* operator[] (const OpenTypeTable& table) const {
- if (G_UNLIKELY (table.offset == 0)) return NULL;
+ if (HB_UNLIKELY (table.offset == 0)) return NULL;
return ((const char*)this) + table.offset;
}
inline char* operator[] (const OpenTypeTable& table) {
- if (G_UNLIKELY (table.offset == 0)) return NULL;
+ if (HB_UNLIKELY (table.offset == 0)) return NULL;
return ((char*)this) + table.offset;
}
hb_ot_layout_class_t gdef_klass;
int len = layout->new_gdef.len;
- if (G_UNLIKELY (glyph > 65535))
+ if (HB_UNLIKELY (glyph > 65535))
return;
if (glyph >= len) {
new_len = 65535;
new_klasses = (unsigned char *) realloc (layout->new_gdef.klasses, new_len * sizeof (unsigned char));
- if (G_UNLIKELY (!new_klasses))
+ if (HB_UNLIKELY (!new_klasses))
return;
memset (new_klasses + len, 0, new_len - len);
unsigned char *klasses,
uint16_t count)
{
- if (G_UNLIKELY (!count || !glyphs || !klasses))
+ if (HB_UNLIKELY (!count || !glyphs || !klasses))
return;
if (layout->new_gdef.len == 0) {