-
Notifications
You must be signed in to change notification settings - Fork 9
/
FunctionsStrings.h
30 lines (26 loc) · 1.35 KB
/
FunctionsStrings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <iostream>
#define MAX_INT_LEN 5
#pragma once
using namespace std;
class FunctionsStrings {
public:
static const char * getExtension(const char * filename);
static const char * eraseExtension(char * filename);
static char * replaceCharacters(char * str, const char replace, const char newReplace[]);
static char * removeSpecialCharacters(const char * str);
static char * eraseLastToken(char * str, const char delimiter);
static char * getToken(char * str, const char delimiter, int index);
static char * getLastToken(char * str, const char delimiter);
static char * getFirstToken(char * str, const char delimiter);
static char * cleanStr(char * str, const char delimiter);
static long numCharactersInString(char * str, const char patern);
static char * castingHexToString(char * hexSentence);
static char castingHexToChar(char * hexSentence);
static bool getXMLvalue(char * strXML, char * buffer, unsigned int bufferLen);
static bool setXMLvalue(char * strXML, char * newStrXML);
static char * replaceXMLvalue(char * strXML, char * newStrXML);
static wchar_t * castingCharToWideChar(const char * str);
static char * castingWideCharToChar(const wchar_t * wcStr);
static char * timeSerial(int hour, int min);
static char * int2char(int value);
};