[pango/harfbuzz-ng] [HB] Minor
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Subject: [pango/harfbuzz-ng] [HB] Minor
- Date: Wed, 20 May 2009 15:27:21 -0400 (EDT)
commit 014a7567c6152b73218fe21a54e34ddc6ef1447d
Author: Behdad Esfahbod <behdad behdad org>
Date: Mon May 18 13:50:15 2009 -0400
[HB] Minor
---
pango/opentype/hb-ot-layout-gsub-private.h | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/pango/opentype/hb-ot-layout-gsub-private.h b/pango/opentype/hb-ot-layout-gsub-private.h
index dc28df6..fc92c62 100644
--- a/pango/opentype/hb-ot-layout-gsub-private.h
+++ b/pango/opentype/hb-ot-layout-gsub-private.h
@@ -46,7 +46,7 @@ struct SingleSubstFormat1 {
private:
- inline bool single_substitute (hb_codepoint_t &glyph_id) const {
+ inline bool get_substitute (hb_codepoint_t &glyph_id) const {
unsigned int index = (this+coverage) (glyph_id);
if (HB_LIKELY (index == NOT_COVERED))
@@ -73,7 +73,7 @@ struct SingleSubstFormat2 {
private:
- inline bool single_substitute (hb_codepoint_t &glyph_id) const {
+ inline bool get_substitute (hb_codepoint_t &glyph_id) const {
unsigned int index = (this+coverage) (glyph_id);
if (HB_LIKELY (index == NOT_COVERED))
@@ -103,10 +103,10 @@ struct SingleSubst {
private:
- inline bool single_substitute (hb_codepoint_t &glyph_id) const {
+ inline bool get_substitute (hb_codepoint_t &glyph_id) const {
switch (u.format) {
- case 1: return u.format1->single_substitute (glyph_id);
- case 2: return u.format2->single_substitute (glyph_id);
+ case 1: return u.format1->get_substitute (glyph_id);
+ case 2: return u.format2->get_substitute (glyph_id);
default:return false;
}
}
@@ -115,7 +115,7 @@ struct SingleSubst {
hb_codepoint_t glyph_id = IN_CURGLYPH ();
- if (!single_substitute (glyph_id))
+ if (!get_substitute (glyph_id))
return false;
_hb_buffer_replace_glyph (buffer, glyph_id);
@@ -314,7 +314,7 @@ struct Ligature {
friend struct LigatureSet;
private:
- inline bool substitute_ligature (LOOKUP_ARGS_DEF, bool is_mark) const {
+ inline bool substitute (LOOKUP_ARGS_DEF, bool is_mark) const {
unsigned int i, j;
unsigned int count = component.len;
@@ -393,12 +393,12 @@ struct LigatureSet {
private:
- inline bool substitute_ligature (LOOKUP_ARGS_DEF, bool is_mark) const {
+ inline bool substitute (LOOKUP_ARGS_DEF, bool is_mark) const {
unsigned int num_ligs = ligature.len;
for (unsigned int i = 0; i < num_ligs; i++) {
const Ligature &lig = this+ligature[i];
- if (lig.substitute_ligature (LOOKUP_ARGS, is_mark))
+ if (lig.substitute (LOOKUP_ARGS, is_mark))
return true;
}
@@ -430,7 +430,7 @@ struct LigatureSubstFormat1 {
return false;
const LigatureSet &lig_set = this+ligatureSet[index];
- return lig_set.substitute_ligature (LOOKUP_ARGS, first_is_mark);
+ return lig_set.substitute (LOOKUP_ARGS, first_is_mark);
}
private:
@@ -438,7 +438,7 @@ struct LigatureSubstFormat1 {
OffsetTo<Coverage>
coverage; /* Offset to Coverage table--from
* beginning of Substitution table */
- OffsetArrayOf<LigatureSet>\
+ OffsetArrayOf<LigatureSet>
ligatureSet; /* Array LigatureSet tables
* ordered by Coverage Index */
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]