00001 #ifndef _FV_STRUTLS_H_
00002 #define _FV_STRUTLS_H_
00003
00004 #include<string>
00005 #include<vector>
00006
00007 std::string trimString(const std::string& sText,
00008 const std::string& sToken);
00009
00010 int trimString(const std::string& sText,
00011 std::vector<std::string>& vTokens,
00012 const std::string& sSeps = " \t");
00013
00014 int countWords(const std::string& sText);
00015
00016 int countSubString(const std::string& sText,
00017 const std::string& sToken);
00018
00019 int getSubStrPosition(const std::string& sText,
00020 const std::string& stoken,
00021 int num = 1);
00022 #endif
00023