Home | History | Annotate | Download | only in pdt

Lines Matching refs:label

47   typedef typename Arc::Label Label;
87 bool Find(Label match_label);
105 void AddOpenParen(Label label) {
106 if (label == 0) {
107 FSTERROR() << "ParenMatcher: Bad open paren label: 0";
109 open_parens_.Insert(label);
113 void AddCloseParen(Label label) {
114 if (label == 0) {
115 FSTERROR() << "ParenMatcher: Bad close paren label: 0";
117 close_parens_.Insert(label);
121 void RemoveOpenParen(Label label) {
122 if (label == 0) {
123 FSTERROR() << "ParenMatcher: Bad open paren label: 0";
125 open_parens_.Erase(label);
129 void RemoveCloseParen(Label label) {
130 if (label == 0) {
131 FSTERROR() << "ParenMatcher: Bad close paren label: 0";
133 close_parens_.Erase(label);
145 bool IsOpenParen(Label label) const {
146 return open_parens_.Member(label);
149 bool IsCloseParen(Label label) const {
150 return close_parens_.Member(label);
166 // open paren label set
167 CompactSet<Label, kNoLabel> open_parens_;
169 // close paren label set
170 CompactSet<Label, kNoLabel> close_parens_;
183 bool ParenMatcher<M>::Find(Label match_label) {
250 Label label = match_type_ == MATCH_INPUT ?
252 if (label > open_parens_.UpperBound())
254 if (IsOpenParen(label))
265 Label label = match_type_ == MATCH_INPUT ?
267 if (label > close_parens_.UpperBound())
269 if (IsCloseParen(label))
283 typedef typename Arc::Label Label;
289 typedef PdtStack<StackId, Label> ParenStack;
296 const vector<pair<Label, Label> > *parens = 0,
299 parens_(parens ? *parens : vector<pair<Label, Label> >()),
307 const pair<Label, Label> &p = (*parens)[i];
393 const FilterState FilterParen(Label label, const FilterState1 &f1,
398 StackId stack_id = stack_.Find(f2.GetState(), label);
407 vector<pair<Label, Label> > parens_;
424 typedef typename Arc::Label Label;
433 const vector<pair<Label, Label> > &parens,
453 typedef typename Arc::Label Label;
463 const vector<pair<Label, Label> > &parens,
492 // a path (see PdtExpand()). The open-close parenthesis label pairs
496 const vector<pair<typename Arc::Label,
497 typename Arc::Label> > &parens,
515 // a path (see ExpandFst()). The open-close parenthesis label pairs
520 const vector<pair<typename Arc::Label,
521 typename Arc::Label> > &parens,