Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members
This namespace covers some useful functions, which are used in several other classes.
More...
Functions | |
int | replaceStr (std::string &str, char *val, char *newval, bool all=false) |
Replace the occurence of an old-value with the new-value. | |
void | replaceStr (std::string &str, uint from, uint to, char *newval) |
Replace the characters starting at position-1 until position-2. | |
template<class Ch> std::string | toString (Ch arg) |
Convert any object to a string. | |
char * | newStrCpy (char *from, uint length=0) |
Create a copy of the specified string with a specified length of characters. | |
char * | getHostname () |
Get name of current host. | |
char * | formatTime (ulong msecs) |
Convert time in milliseconds to the time-format: HH:MM:SS. | |
char * | formatTimeSecs (ulong secs) |
Convert time in seconds to the time-format: HH:MM:SS. | |
char * | convertToString (ulong msecs) |
Convert milliseconds to a string. | |
string | createSDPFile (string name, string url, string relpath, string abspath) |
Create a SDP file. |
Detailed Description
This namespace covers some useful functions, which are used in several other classes.
- Author:
- Klaus Schoeffmann
Function Documentation
|
Create a SDP file.
Referenced by Movie::getHTMLRepresentation(), and SessionList::writeHTMLRepresentation().
|
|
Replace the characters starting at position-1 until position-2.
|
|
Replace the occurence of an old-value with the new-value.
Referenced by SemiProxySession::forwardToClient(), and SemiDebug::operator<<().
|