/*
 * KK_Util.h
 *
 *  Created on: 2018骞�12��10��
 *      Author: weiling
 */

#ifndef KK_UTIL_H_
#define KK_UTIL_H_


#include <string.h>
#include <string>
#include <vector>
#include <map>
#include <fstream>
#include <bitset>
#include <sstream>
#include <netinet/in.h>

using namespace std;

#define BIGENDIAN_S(num)  htons(num)

int HexToString(const char* input, char* output, int len,const char* sep);
int StringToHex(const char* input, unsigned char* output,const int bufLen);
int StringToHexNoSpace(const char* input, unsigned char* output,const int bufLen);
string IntToString(const int input);
string UIntToString(const uint input);
int StringToInt(const string input,int& error);
uint StringToUInt(const string input,int& error);
double StringToDouble(const string input,int& error);
string DoubleToString(const double input,int& error);
void Split(const string& src, const string& separator, vector<string>& dest);
unsigned long getSystemTimeInMs();
string Replace(const string& str, const string& src, const string& dest);


#endif /* KK_UTIL_H_ */
