102 if (!m_firstname.isEmpty() || !m_lastname.isEmpty()) {
105 (*firstnameFeatureIt).setPosition(0);
106 (*firstnameFeatureIt).setLength(0);
109 (*lastnameFeatureIt).setPosition(0);
110 (*lastnameFeatureIt).setLength(0);
123 for (RecognizerMatch::const_iterator i(m.begin()); i!=m.end(); i++) {
124 if (! (*i).isKept()) {
131 if (!firstname.isEmpty()) { firstname +=
LimaChar(
' '); }
135 if (!lastname.isEmpty()) { lastname +=
LimaChar(
' '); }
141 if (((!firstname.isEmpty()) && (!lastname.isEmpty()))
144 RecognizerMatch::const_iterator i(m.begin());
146 uint64_t pos = (int64_t)(t->
position());
148 uint64_t len = (int64_t)(t->
length());
149 (*firstnameFeatureIt).setPosition(pos);
150 (*firstnameFeatureIt).setLength(len);
159 RecognizerMatch::const_iterator i(m.begin());
164 uint64_t pos = (int64_t)(t->
position());
165 (*firstnameFeatureIt).setPosition(pos);
166 uint64_t len = (int64_t)(t->
length());
167 (*firstnameFeatureIt).setLength(len);
174 (*lastnameFeatureIt).setPosition(pos);
175 len = (int64_t)(t->
length());
176 (*lastnameFeatureIt).setLength(len);
186 uint64_t lastnamePos = 2001;
187 uint64_t lastnameLen = 2002;
188 uint64_t firstnamePos = 2003;
189 uint64_t firstnameLen = 2004;
190 bool inLastname(
false);
192 RecognizerMatch::const_iterator next;
193 for (RecognizerMatch::const_iterator i(m.begin()); i!=m.end(); i++) {
208 if (!firstname.isEmpty()) { firstname +=
LimaChar(
' '); }
219 if (next == m.end()) { inLastname=1; }
232 if (!lastname.isEmpty() &&
238 lastnameLen = t->
length();
241 if (!firstname.isEmpty()) { firstname +=
LimaChar(
' '); }
244 firstnameLen = t->
length();
248 if (firstname.isEmpty() && lastname.isEmpty()) {
256 (*featureIt).setPosition(firstnamePos);
257 (*featureIt).setLength(firstnameLen);
260 (*featureIt).setPosition(lastnamePos);
261 (*featureIt).setLength(lastnameLen);
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...