Gabriele Contini
2019-10-19 78b6def7e795a1bdc37093f582db56cbdae01347
src/library/base/StringUtils.h
@@ -2,12 +2,15 @@
 * StringUtils.h
 *
 *  Created on: Apr 8, 2014
 *
 *
 */
#ifndef STRINGUTILS_H_
#define STRINGUTILS_H_
#include <bits/types/time_t.h>
#include <string>
#include <vector>
namespace license {
using namespace std;
@@ -23,6 +26,20 @@
string toupper_copy(const string& lowercase);
time_t seconds_from_epoch(const char* s);
} /* namespace license */
/**
 * 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_ */