Logo Search packages:      
Sourcecode: verbiste version File versions

Tense FrenchVerbDictionary::convertTenseName ( const char *  tenseName  )  [static]

Converts an English tense name into the corresponding enumerated type.

Parameters:
tenseName English tense name (present, past, etc)
Returns:
a member of the Tense enumeration (INVALID_MODE if 'modeName' is not known)

Definition at line 514 of file FrenchVerbDictionary.cpp.

{
    Tense tense = INVALID_TENSE;
    if (tenseName == NULL)
      ;
    else if (strcmp(tenseName, "infinitive-present") == 0)
      tense = PRESENT_TENSE;
    else if (strcmp(tenseName, "present") == 0)
      tense = PRESENT_TENSE;
    else if (strcmp(tenseName, "imperfect") == 0)
      tense = IMPERFECT_TENSE;
    else if (strcmp(tenseName, "future") == 0)
      tense = FUTURE_TENSE;
    else if (strcmp(tenseName, "simple-past") == 0)
      tense = PAST_TENSE;
    else if (strcmp(tenseName, "imperative-present") == 0)
      tense = PRESENT_TENSE;
    else if (strcmp(tenseName, "present-participle") == 0)
      tense = PRESENT_TENSE;
    else if (strcmp(tenseName, "past-participle") == 0)
      tense = PAST_TENSE;
    else if (strcmp(tenseName, "past") == 0)
      tense = PAST_TENSE;
    return tense;
}


Generated by  Doxygen 1.6.0   Back to index