| 1 |
#ifndef __StringTools_H__
|
| 2 |
#define __StringTools_H__
|
| 3 |
|
| 4 |
|
| 5 |
class StringTools
|
| 6 |
{
|
| 7 |
|
| 8 |
public:
|
| 9 |
StringTools();
|
| 10 |
~StringTools();
|
| 11 |
|
| 12 |
bool compareString(char *source, char *source2);
|
| 13 |
bool compareString(char *source, int sizeSource, char *source2, int sizeSource2);
|
| 14 |
int sizeOfString(char *source);
|
| 15 |
void copyString(char *source, char *dest);
|
| 16 |
char *addStringTwoString(char *source, char *source2);
|
| 17 |
char *addStringTwoString(char *source, int sourceSize, char *source2, int sourceSize2);
|
| 18 |
bool checkFront(char *file, int fileSize, char *fileFormat, int fileFormatSize);
|
| 19 |
bool checkBack(char *file, int fileSize, char *fileFormat, int fileFormatSize);
|
| 20 |
bool isStringSmaller(char *source, int sourceSize, char *source2, int sourceSize2);
|
| 21 |
bool isStringLarger(char *source, int sourceSize, char *source2, int sourceSize2);
|
| 22 |
int backFind(char *source, char target);
|
| 23 |
char *cutTheBack(char * word, int *length, char target);
|
| 24 |
char *cutTheBegining(char * word, int *length, char target);
|
| 25 |
void moveBack(char *tempBuffer, int forward, int howLong, int length);
|
| 26 |
bool theFilePathIsNotUnder(char *buffer, int length, char *filePath, int filePathLength);
|
| 27 |
bool compareStringAPart(char *source, int sizeSource, char *source2, int sizeSource2);
|
| 28 |
int sizeOfString(char *source, char *endSource);
|
| 29 |
void copyString(char *source, int sourceSize, char *dest);
|
| 30 |
int sizeOfStringWithOutEndNull(char *source);
|
| 31 |
bool isStringValueSmaller(char *source, int sourceSize, char *source2, int sourceSize2);
|
| 32 |
bool isStringValueLarger(char *source, int sourceSize, char *source2, int sourceSize2);
|
| 33 |
|
| 34 |
private:
|
| 35 |
char *buffer;
|
| 36 |
};
|
| 37 |
|
| 38 |
|
| 39 |
#endif
|