Pulsars.cpp   Pulsars.cpp 
skipping to change at line 320 skipping to change at line 320
result << pulsar->getNameI18n().toUpper(); result << pulsar->getNameI18n().toUpper();
} }
} }
result.sort(); result.sort();
if (result.size()>maxNbItem) result.erase(result.begin()+maxNbItem, result.end()); if (result.size()>maxNbItem) result.erase(result.begin()+maxNbItem, result.end());
return result; return result;
} }
QStringList Pulsars::listMatchingObjects(const QString& objPrefix, int maxN
bItem) const
{
QStringList result;
if (maxNbItem==0) return result;
QString objw = objPrefix.toUpper();
foreach(const PulsarP& pulsar, psr)
{
if (pulsar->getEnglishName().toUpper().left(objw.length()) =
= objw)
{
result << pulsar->getEnglishName().toUpper()
;
}
}
result.sort();
if (result.size()>maxNbItem) result.erase(result.begin()+maxNbItem,
result.end());
return result;
}
QStringList Pulsars::listAllObjects(bool inEnglish) const QStringList Pulsars::listAllObjects(bool inEnglish) const
{ {
QStringList result; QStringList result;
if (inEnglish) if (inEnglish)
{ {
foreach(const PulsarP& pulsar, psr) foreach(const PulsarP& pulsar, psr)
{ {
result << pulsar->getEnglishName(); result << pulsar->getEnglishName();
} }
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 25 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/