00001
00002 #ifndef jAPItextsH
00003 #define jAPItextsH
00004
00005 #include <vector.h>
00006 #include <vcl/dstring.h>
00007 #include <comctrls.hpp>
00008 #include <stdio.h>
00009
00010
00011
00012 char * __fastcall jSTRstringToBuffer(AnsiString src);
00013
00014 AnsiString __fastcall jSTRremove(AnsiString src, int pos, int len);
00015 AnsiString __fastcall jSTRremove(char c, AnsiString src);
00016 AnsiString __fastcall jSTRremove(AnsiString key, AnsiString src);
00017 AnsiString __fastcall jSTRreplace(char a, char b, AnsiString src);
00018 AnsiString __fastcall jSTRreplace(AnsiString ch1, AnsiString ch2, AnsiString src);
00019 AnsiString __fastcall jSTRfix(AnsiString src, int size);
00020 AnsiString __fastcall jSTRcrypt(AnsiString ch1, AnsiString key);
00021 AnsiString __fastcall jSTRunCrypt(AnsiString ch1, AnsiString key) { return jSTRcrypt(ch1, key); }
00022 AnsiString __fastcall jSTRinterpret(AnsiString src);
00023 bool __fastcall jSTRparse(AnsiString path, char delimiter, TStrings * sl);
00024 bool __fastcall jSTRparse(AnsiString path, char delimiter, vector<AnsiString> & _strings);
00025 AnsiString __fastcall jSTRextractValue(AnsiString _paramValue);
00026 AnsiString __fastcall jSTRinsertParamValue(AnsiString _param, AnsiString _value);
00027
00028 bool __fastcall jSTRwriteString(AnsiString _string, FILE * f);
00029 AnsiString __fastcall jSTRreadString(FILE * f);
00030 bool __fastcall jSTRwriteString(AnsiString _string, TStream * _str);
00031 AnsiString __fastcall jSTRreadString(TStream * _str);
00032 AnsiString __fastcall jSTRdisplayByteSize(int _size);
00033
00034 AnsiString __fastcall jFILextension(AnsiString FileName);
00035 AnsiString __fastcall jFILcaption(AnsiString FileName);
00036 AnsiString __fastcall jFILgetPath(AnsiString FileName);
00037 AnsiString __fastcall jFILstandardizePath(AnsiString Path);
00038 bool __fastcall jFILcreatePath(AnsiString path, bool force = true);
00039 bool __fastcall jFILdeletePath(AnsiString path, bool force = false);
00040 bool __fastcall jFILparsePath(AnsiString path, TStrings * sl) { return jSTRparse(path, '\\', sl); }
00041 bool __fastcall jFILmove(AnsiString src, AnsiString dst);
00042 bool __fastcall jFILcopy(AnsiString src, AnsiString dst);
00043
00044 bool __fastcall jFILlistFilesOf(AnsiString Path, TStrings * sl, bool fullName = false, AnsiString filter = "*.*", bool showExtension=true);
00045 bool __fastcall jFILlistSubFilesOf(AnsiString & Path, TStrings * _sl, bool _fullPath = false, AnsiString _filter = "*.*", int attrib = faAnyFile);
00046
00047 bool __fastcall jFILlistDirStructureOf(AnsiString & Path, TTreeView * TV, AnsiString extension = "*", int attrib = faAnyFile, TTreeNode * TN = NULL);
00048 bool __fastcall jFILlistAndParseFilesOf(AnsiString & Path, TTreeView * TV, AnsiString filter = "*.*", char _delim = '\\', bool showExtension=true);
00049
00050
00051
00052 AnsiString __fastcall jTREgetPath(TTreeNode * TN, char delimiter = '\\');
00053
00054
00055 #endif