00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef TECPLOT_TOOLBOX_STRUTIL_H
00012 #define TECPLOT_TOOLBOX_STRUTIL_H
00013
00014 #if defined MSWIN
00015 #pragma once
00016 #endif
00017
00018 #include <string>
00019 #include <vector>
00020
00021 namespace tecplot { namespace toolbox {
00022
00023 class TPTOOLBOX_DLLAPI StrUtil
00024 {
00025 public:
00035 static Boolean_t isWhiteSpace(const char C);
00036
00054 static void trim(std::string &str);
00055
00089 static Boolean_t scanForSymbol(std::string &str, const char symbol);
00090
00118 static Boolean_t scanForLgIndex(std::string &str, LgIndex_t *value);
00119
00126 static void toUpper(std::string &str);
00127
00134 static void toLower(std::string &str);
00135
00169 static std::vector<std::string> split(std::string str,
00170 std::string delimiters = ",",
00171 bool discardEmptyStrings = false);
00172 };
00173
00174 }}
00175
00176 #endif
00177
00178