The Core Class has 8+ methods (functions) that perform a variety of tasks.
You can easily include these in your software (documentation that comes with the Utilities
covers this in detail), and then you
can enjoy the functionality of any of these:
- Search and Replace for String/CString
You pass your string or cstring to be searched, along with what you want found,
and what you want it replaced with (pSearchS, pFind & pReplace). This function will return your
string or cstring with
any instances of the find value changed to the replace value. Furthermore, it automagically
senses whether you have passed it a string or cstring to search, and uses the appropriate
string or cstring method. Cool!
- Get Computer Name
Returns the proper UNC name (the computer's "official" name, how it is referred to by a network)
for whatever computer the software is running on.
- Get File Part
This method returns the specified part of a filename, i.e. the drive, path, file name
or extension -- or any combination of those. Will optionally also give you "FNS_FullPath", which is
the drive + the path, and/or "FNS_FileName", which is the file name + the extension.
All this makes it possible to get the individual parts that you need, and makes it really easy
if, for instance, you need to create a file in the same path as a file you have read.
It also make it easy to do things such as create a new file with a different extension,
like copying files for backup. The uses for this one are endless.
- Split File Parts
This one, you give it a file name, which can be with a path or with a drive or whatever,
and it splits it into the drive, the folder, the file name and the extension.
- Remove Backslash
Can remove a backslash from the beginning of a filename, from the end, or both.
- Unix to Windows Path
Converts a path from Unix format to Windows format (changes forward slashes to backslashes).
- Windows to Unix Path
Converts a path from Windows format to Unix format (changes backslashes to forward slashes).
- Debug
Sends debug information to external debug software, such as
Debug Viewer.
This class also retrieves the program command line, program EXE name, and program EXE path.
These debug classes are documented extensively in the Icetips Utilities documentation.