librime: filter_commons.h Source File

| librime 1.2 Rime Input Method Engine, the core library

filter_commons.h
Go to the documentation of this file.
1//
2// Copyright RIME Developers
3// Distributed under the BSD License
4//
5// 2013-11-05 GONG Chen <chen.sst@gmail.com>
6//
7#ifndef RIME_FILTER_COMMONS_H_
8#define RIME_FILTER_COMMONS_H_
9
10namespace rime {
11
12struct Segment;
13struct Ticket;
14
15 class TagMatching {
16 public:
17 explicit TagMatching(const Ticket& ticket);
18 bool TagsMatch(Segment* segment);
19
20 protected:
21 vector<string> tags_;
22};
23
24} // namespace rime
25
26#endif // RIME_FILTER_COMMONS_H_
rime
Definition algebra.cc:12
rime::TagMatching::TagMatching
TagMatching(const Ticket &ticket)
Definition filter_commons.cc:14
rime::TagMatching::tags_
vector< string > tags_
Definition filter_commons.h:21
rime::TagMatching::TagsMatch
bool TagsMatch(Segment *segment)
Definition filter_commons.cc:27
rime::Segment
Definition segmentation.h:18
rime::Ticket
Definition ticket.h:17