126 if (!m_firstname.isEmpty() || !m_lastname.isEmpty()) {
129 (*firstnameFeatureIt).setPosition(0);
130 (*firstnameFeatureIt).setLength(0);
133 (*lastnameFeatureIt).setPosition(0);
134 (*lastnameFeatureIt).setLength(0);
147 for (RecognizerMatch::const_iterator i(m.begin()); i!=m.end(); i++) {
148 if (! (*i).isKept()) {
155 if (!firstname.isEmpty()) { firstname +=
LimaChar(
' '); }
159 if (!lastname.isEmpty()) { lastname +=
LimaChar(
' '); }
165 if (((!firstname.isEmpty()) && (!lastname.isEmpty()))
168 RecognizerMatch::const_iterator i(m.begin());
170 uint64_t pos = (int64_t)(t->
position());
172 uint64_t len = (int64_t)(t->
length());
173 (*firstnameFeatureIt).setPosition(pos);
174 (*firstnameFeatureIt).setLength(len);
183 RecognizerMatch::const_iterator i(m.begin());
188 uint64_t pos = (int64_t)(t->
position());
189 (*firstnameFeatureIt).setPosition(pos);
190 uint64_t len = (int64_t)(t->
length());
191 (*firstnameFeatureIt).setLength(len);
198 (*lastnameFeatureIt).setPosition(pos);
199 len = (int64_t)(t->
length());
200 (*lastnameFeatureIt).setLength(len);
210 uint64_t lastnamePos = 2001;
211 uint64_t lastnameLen = 2002;
212 uint64_t firstnamePos = 2003;
213 uint64_t firstnameLen = 2004;
214 bool inLastname(
false);
216 RecognizerMatch::const_iterator next;
217 for (RecognizerMatch::const_iterator i(m.begin()); i!=m.end(); i++) {
232 if (!firstname.isEmpty()) { firstname +=
LimaChar(
' '); }
243 if (next == m.end()) { inLastname=1; }
256 if (!lastname.isEmpty() &&
262 lastnameLen = t->
length();
265 if (!firstname.isEmpty()) { firstname +=
LimaChar(
' '); }
268 firstnameLen = t->
length();
272 if (firstname.isEmpty() && lastname.isEmpty()) {
280 (*featureIt).setPosition(firstnamePos);
281 (*featureIt).setLength(firstnameLen);
284 (*featureIt).setPosition(lastnamePos);
285 (*featureIt).setLength(lastnameLen);
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...