Logo Search packages:      
Sourcecode: verbiste version File versions

Mode FrenchVerbDictionary::convertModeName ( const char *  modeName  )  [static]

Converts an English mode name into the corresponding enumerated type.

Parameters:
modeName English mode name (infinitive, indicative, etc)
Returns:
a member of the Mode enumeration (INVALID_MODE if 'modeName' is not known)

Definition at line 491 of file FrenchVerbDictionary.cpp.

{
    Mode mode = INVALID_MODE;
    if (modeName == NULL)
      ;
    else if (strcmp(modeName, "infinitive") == 0)
      mode = INFINITIVE_MODE;
    else if (strcmp(modeName, "indicative") == 0)
      mode = INDICATIVE_MODE;
    else if (strcmp(modeName, "conditional") == 0)
      mode = CONDITIONAL_MODE;
    else if (strcmp(modeName, "subjunctive") == 0)
      mode = SUBJUNCTIVE_MODE;
    else if (strcmp(modeName, "imperative") == 0)
      mode = IMPERATIVE_MODE;
    else if (strcmp(modeName, "participle") == 0)
      mode = PARTICIPLE_MODE;
    return mode;
}


Generated by  Doxygen 1.6.0   Back to index