}
-int KEduVocDocument::findIdentifier(const QString &lang) const
+int KEduVocDocument::indexOfIdentifier(const QString &lang) const
{
QStringList::const_iterator first = d->m_identifiers.begin();
int count = 0;
while (first != d->m_identifiers.end()) {
- if ( *first == lang)
+ if (*first == lang)
return count;
first++;
count++;
void removeIdentifier(int index);
/**
- * Determines if given translation is available and where
+ * Determines the index of a given identifier
*
* @param lang identifier of language
- * @returns index of translation, 0=original, -1=none
+ * @returns index of identifier, 0 = original, 1..n = translation, -1 = not found
*/
- int findIdentifier(const QString &lang) const;
+ int indexOfIdentifier(const QString &lang) const;
/**
* Returns the attribute string