Skip to content

Commit 636ac34

Browse files
committedMay 21, 2024··
Remove input_
1 parent ad309a9 commit 636ac34

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed
 

‎src/layout/context.rs

+18-18
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ table! {
127127
format (u16), // format
128128
coverage_offset (u16), // coverageOffset
129129
backward_class_offset (u16), // backtrackClassDefOffset
130-
input_class_offset (u16), // inputClassDefOffset
130+
class_offset (u16), // inputClassDefOffset
131131
forward_class_offset (u16), // lookaheadClassDefOffset
132132
record_count (u16), // chainedClassSeqRuleSetCount
133133

@@ -143,8 +143,8 @@ table! {
143143
jump_take!(tape, position, this.backward_class_offset)
144144
},
145145

146-
input_class (Class) |this, tape, position| {
147-
jump_take!(tape, position, this.input_class_offset)
146+
class (Class) |this, tape, position| {
147+
jump_take!(tape, position, this.class_offset)
148148
},
149149

150150
forward_class (Class) |this, tape, position| {
@@ -168,10 +168,10 @@ table! {
168168
tape.take_given(this.backward_glyph_count as usize)
169169
},
170170

171-
input_glyph_count (u16), // inputGlyphCount
171+
glyph_count (u16), // inputGlyphCount
172172

173-
input_coverage_offsets (Vec<u16>) |this, tape, _| { // inputCoverageOffsets
174-
tape.take_given(this.input_glyph_count as usize)
173+
coverage_offsets (Vec<u16>) |this, tape, _| { // inputCoverageOffsets
174+
tape.take_given(this.glyph_count as usize)
175175
},
176176

177177
forward_glyph_count (u16), // lookaheadGlyphCount
@@ -190,8 +190,8 @@ table! {
190190
jump_take!(tape, position, this.backward_glyph_count, this.backward_coverage_offsets)
191191
},
192192

193-
input_coverages (Vec<Coverage>) |this, tape, position| {
194-
jump_take!(tape, position, this.input_glyph_count, this.input_coverage_offsets)
193+
coverages (Vec<Coverage>) |this, tape, position| {
194+
jump_take!(tape, position, this.glyph_count, this.coverage_offsets)
195195
},
196196

197197
forward_coverages (Vec<Coverage>) |this, tape, position| {
@@ -279,13 +279,13 @@ table! {
279279
tape.take_given(this.backward_glyph_count as usize)
280280
},
281281

282-
input_glyph_count (u16), // inputGlyphCount
282+
glyph_count (u16), // inputGlyphCount
283283

284-
input_glyph_ids (Vec<GlyphID>) |this, tape| { // inputSequence
285-
if this.input_glyph_count == 0 {
284+
glyph_ids (Vec<GlyphID>) |this, tape| { // inputSequence
285+
if this.glyph_count == 0 {
286286
raise!("found a malformed chained context record");
287287
}
288-
tape.take_given(this.input_glyph_count as usize - 1)
288+
tape.take_given(this.glyph_count as usize - 1)
289289
},
290290

291291
forward_glyph_count (u16), // lookaheadGlyphCount
@@ -323,22 +323,22 @@ table! {
323323
pub ChainedClassRecord { // ChainedClassSequenceRule
324324
backward_glyph_count (u16), // backtrackGlyphCount
325325

326-
backward_class_ids (Vec<u16>) |this, tape| { // backtrackSequence
326+
backward_indices (Vec<u16>) |this, tape| { // backtrackSequence
327327
tape.take_given(this.backward_glyph_count as usize)
328328
},
329329

330-
input_glyph_count (u16), // inputGlyphCount
330+
glyph_count (u16), // inputGlyphCount
331331

332-
input_class_ids (Vec<u16>) |this, tape| { // inputSequence
333-
if this.input_glyph_count == 0 {
332+
indices (Vec<u16>) |this, tape| { // inputSequence
333+
if this.glyph_count == 0 {
334334
raise!("found a malformed chained class context record");
335335
}
336-
tape.take_given(this.input_glyph_count as usize - 1)
336+
tape.take_given(this.glyph_count as usize - 1)
337337
},
338338

339339
forward_glyph_count (u16), // lookaheadGlyphCount
340340

341-
forward_class_ids (Vec<u16>) |this, tape| { // lookaheadSequence
341+
forward_indices (Vec<u16>) |this, tape| { // lookaheadSequence
342342
tape.take_given(this.forward_glyph_count as usize)
343343
},
344344

0 commit comments

Comments
 (0)
Please sign in to comment.