[cff] Hide members of byte_str_ref_t
This commit is contained in:
parent
18141f0007
commit
7a39464b18
|
@ -327,13 +327,14 @@ struct byte_str_ref_t
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned get_offset () const { return offset; }
|
||||||
|
|
||||||
void set_error () { error = true; }
|
void set_error () { error = true; }
|
||||||
bool in_error () const { return error; }
|
bool in_error () const { return error; }
|
||||||
|
|
||||||
|
protected:
|
||||||
hb_ubytes_t str;
|
hb_ubytes_t str;
|
||||||
unsigned int offset; /* beginning of the sub-string within str */
|
unsigned int offset; /* beginning of the sub-string within str */
|
||||||
|
|
||||||
protected:
|
|
||||||
bool error;
|
bool error;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -521,16 +522,16 @@ struct parsed_values_t
|
||||||
{
|
{
|
||||||
VAL *val = values.push ();
|
VAL *val = values.push ();
|
||||||
val->op = op;
|
val->op = op;
|
||||||
val->str = str_ref.sub_array (opStart, str_ref.offset - opStart);
|
val->str = str_ref.sub_array (opStart, str_ref.get_offset () - opStart);
|
||||||
opStart = str_ref.offset;
|
opStart = str_ref.get_offset ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void add_op (op_code_t op, const byte_str_ref_t& str_ref, const VAL &v)
|
void add_op (op_code_t op, const byte_str_ref_t& str_ref, const VAL &v)
|
||||||
{
|
{
|
||||||
VAL *val = values.push (v);
|
VAL *val = values.push (v);
|
||||||
val->op = op;
|
val->op = op;
|
||||||
val->str = str_ref.sub_array ( opStart, str_ref.offset - opStart);
|
val->str = str_ref.sub_array (opStart, str_ref.get_offset () - opStart);
|
||||||
opStart = str_ref.offset;
|
opStart = str_ref.get_offset ();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool has_op (op_code_t op) const
|
bool has_op (op_code_t op) const
|
||||||
|
|
|
@ -813,7 +813,7 @@ struct cff1_top_dict_opset_t : top_dict_opset_t<cff1_top_dict_val_t>
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
env.last_offset = env.str_ref.offset;
|
env.last_offset = env.str_ref.get_offset ();
|
||||||
top_dict_opset_t<cff1_top_dict_val_t>::process_op (op, env, dictval);
|
top_dict_opset_t<cff1_top_dict_val_t>::process_op (op, env, dictval);
|
||||||
/* Record this operand below if stack is empty, otherwise done */
|
/* Record this operand below if stack is empty, otherwise done */
|
||||||
if (!env.argStack.is_empty ()) return;
|
if (!env.argStack.is_empty ()) return;
|
||||||
|
|
Loading…
Reference in New Issue