Lines Matching refs:candidate

104     if (segment->candidate(i).value == " ") {  in ExpandSpace()
106 *c = segment->candidate(i); in ExpandSpace()
112 } else if (segment->candidate(i).value == " ") { // Full-width space in ExpandSpace()
114 *c = segment->candidate(i); in ExpandSpace()
174 segment->candidate(0).key); in InsertCandidates()
187 const string &target_value = segment->candidate(i).value; in InsertCandidates()
202 const Segment::Candidate &base_candidate = segment->candidate(0); in InsertCandidates()
204 Segment::Candidate *candidate = segment->insert_candidate(offset); in InsertCandidates() local
205 DCHECK(candidate); in InsertCandidates()
207 candidate->Init(); in InsertCandidates()
208 candidate->lid = iter.lid(); in InsertCandidates()
209 candidate->rid = iter.rid(); in InsertCandidates()
210 candidate->cost = base_candidate.cost; in InsertCandidates()
211 candidate->structure_cost = base_candidate.structure_cost; in InsertCandidates()
212 candidate->value.assign(iter.value().data(), iter.value().size()); in InsertCandidates()
213 candidate->content_value.assign(iter.value().data(), iter.value().size()); in InsertCandidates()
214 candidate->key = candidate_key; in InsertCandidates()
215 candidate->content_key = candidate_key; in InsertCandidates()
218 candidate->attributes |= Segment::Candidate::CONTEXT_SENSITIVE; in InsertCandidates()
223 if (candidate->value == "“”" || candidate->value == "‘’" || in InsertCandidates()
224 candidate->value == "w" || candidate->value == "www") { in InsertCandidates()
225 candidate->attributes |= Segment::Candidate::NO_VARIANTS_EXPANSION; in InsertCandidates()
228 candidate->description = GetDescription(candidate->value, in InsertCandidates()
254 Segment::Candidate *candidate = segment->mutable_candidate(i); in AddDescForCurrentCandidates() local
256 Util::HalfWidthToFullWidth(candidate->value, &full_width_value); in AddDescForCurrentCandidates()
257 Util::FullWidthToHalfWidth(candidate->value, &half_width_value); in AddDescForCurrentCandidates()
260 if (candidate->value == iter.value() || in AddDescForCurrentCandidates()
263 candidate->description = in AddDescForCurrentCandidates()
264 GetDescription(candidate->value, in AddDescForCurrentCandidates()