summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2010-04-22 18:47:03 -0400
committerBehdad Esfahbod <behdad@behdad.org>2010-04-22 18:47:03 -0400
commita0bb49c5830f8a7f25d573ec57b79df2620ddba7 (patch)
treeaee139bb49d3716d3dd8106bf399e54d21789a19 /src
parentd632ec4000b3079150e6424e88a3ab7509f7445c (diff)
Add comment re bsearch effect on sanitize
Diffstat (limited to 'src')
-rw-r--r--src/hb-open-file-private.hh2
-rw-r--r--src/hb-ot-layout-common-private.hh8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/hb-open-file-private.hh b/src/hb-open-file-private.hh
index 605d75c..2e70b96 100644
--- a/src/hb-open-file-private.hh
+++ b/src/hb-open-file-private.hh
@@ -85,7 +85,7 @@ typedef struct OffsetTable
{
Tag t;
t.set (tag);
- // TODO bsearch
+ // TODO: bsearch (need to sort in sanitize)
unsigned int count = numTables;
for (unsigned int i = 0; i < count; i++)
{
diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh
index cfbca1d..2315df9 100644
--- a/src/hb-ot-layout-common-private.hh
+++ b/src/hb-ot-layout-common-private.hh
@@ -87,7 +87,7 @@ struct RecordArrayOf : ArrayOf<Record<Type> > {
{
Tag t;
t.set (tag);
- // TODO bsearch
+ // TODO: bsearch (need to sort in sanitize)
const Record<Type> *a = this->array();
unsigned int count = this->len;
for (unsigned int i = 0; i < count; i++)
@@ -321,7 +321,7 @@ struct CoverageFormat1
return NOT_COVERED;
GlyphID gid;
gid.set (glyph_id);
- // TODO: bsearch
+ // TODO: bsearch (need to sort in sanitize)
unsigned int num_glyphs = glyphArray.len;
for (unsigned int i = 0; i < num_glyphs; i++)
if (gid == glyphArray[i])
@@ -377,7 +377,7 @@ struct CoverageFormat2
private:
inline unsigned int get_coverage (hb_codepoint_t glyph_id) const
{
- // TODO: bsearch
+ // TODO: bsearch (need to sort in sanitize)
unsigned int count = rangeRecord.len;
for (unsigned int i = 0; i < count; i++)
{
@@ -497,7 +497,7 @@ struct ClassDefFormat2
private:
inline hb_ot_layout_class_t get_class (hb_codepoint_t glyph_id) const
{
- // TODO: bsearch
+ // TODO: bsearch (need to sort in sanitize)
unsigned int count = rangeRecord.len;
for (unsigned int i = 0; i < count; i++)
{