Logo Search packages:      
Sourcecode: lttoolbox version File versions  Download package

bool FSTProcessor::endsWith ( wstring const &  str,
wstring const &  suffix 
) [static, private]

Checks if an string ends with a partiuclar suffix

str the string to test
the searched suffix
true if 'str' has the suffix 'suffix'

Definition at line 333 of file fst_processor.cc.

Referenced by classifyFinals().

  if(str.size() < suffix.size())
    return false;
    return str.substr(str.size()-suffix.size()) == suffix;

Generated by  Doxygen 1.6.0   Back to index