gcontini
2019-11-03 0383805b72953ebaa00806a3a39f722e29beb5af
src/library/base/StringUtils.h
@@ -2,12 +2,14 @@
 * StringUtils.h
 *
 *  Created on: Apr 8, 2014
 *      Author: devel
 *
 */
#ifndef STRINGUTILS_H_
#define STRINGUTILS_H_
#include <string>
#include <vector>
namespace license {
using namespace std;
@@ -22,6 +24,21 @@
string toupper_copy(const string& lowercase);
} /* namespace license */
time_t seconds_from_epoch(const char* s);
/**
 * Split a string on a given character
 */
const vector<string> split_string(const string& stringToBeSplit, const char splitchar);
typedef enum {
   INI, BASE64, UNKNOWN
} FILE_FORMAT;
FILE_FORMAT identify_format(const string& license);
}
/* namespace license */
#endif /* STRINGUTILS_H_ */