| #pragma once | |
| //#include "System.h" | |
| //#include "OS.h" | |
| #include "globals.h" | |
| class String | |
| { | |
| private: | |
| String(void); | |
| ~String(void); | |
| public: | |
| static STRING ReplaceAll(STRING originalString, STRING subStringToReplace, STRING newValue); | |
| public: | |
| static void StrCpy(STRING dest, STRING source); | |
| public: | |
| static UINT StrLen(STRING string); | |
| public: | |
| static void StrCat(STRING dest, STRING src); | |
| public: | |
| static void Sprintf1(STRING buffer, STRING format, int arg1); | |
| static void Sprintf2(STRING buffer, STRING format, int arg1, int arg2); | |
| public: | |
| static void StrNCpy(STRING dest, STRING source, UINT count); | |
| public: | |
| static STRING StrDup(STRING str); | |
| public: | |
| static STRING StrStr(STRING str1, STRING str2); | |
| public: | |
| static bool EndsWith(STRING string, STRING suffix); | |
| static UINT LastIndexOf(STRING stringToSearch, STRING originalString); | |
| }; | |