#include <string>
#include <stdexcept>
Include dependency graph for ntostr.h:
Go to the source code of this file.
Namespaces | |
namespace | Dv |
namespace | Dv::Util |
Classes | |
class | Dv::Util::Int |
Class wrapper for int. More... | |
class | Dv::Util::Long |
Class wrapper for long. More... | |
class | Dv::Util::Double |
Class wrapper for double. More... | |
Functions | |
std::string | ntostr (int i, const char *fmt=0) |
Produces a string representation of its int argument. | |
std::string | ntostr (unsigned int u, const char *fmt=0) |
Produces a string representation of its unsigned int argument. | |
std::string | ntostr (long l, const char *fmt=0) |
Produces a string representation of its long argument. | |
std::string | ntostr (unsigned long ul, const char *fmt=0) |
Produces a string representation of its unsigned long argument. | |
std::string | ntostr (double d, unsigned int precision=7, const char *fmt=0) |
Produces a string representation of its double argument. | |
bool | cstr2long (const char *p, long &l, int base=0) |
Try to convert the initial part of a C string to a long. | |
bool | cstr2ulong (const char *p, unsigned long &ul, int base=0) |
Try to convert the initial part of a C string to an unsigned long. | |
bool | cstr2double (const char *p, double &d) |
Try to convert the initial part of a C string to a double. | |
std::string & | s2lower (std::string &s) |
Change (in-place) all chars in string to lower case. | |
std::string & | s2upper (std::string &s) |
Change (in-place) all chars in string to upper case. | |
std::string & | strim (std::string &s) |
Remove leading and trailing white noise (' ', '\n', '\t') from string. | |
char * | strim (char *pc) |
Remove leading and trailing white noise (' ','\n','\t') from C string. |
|
Produces a string representation of its int argument. The representation is determined by a sprintf format string.
|
|
Produces a string representation of its unsigned int argument. The representation is determined by a sprintf format string.
|
|
Produces a string representation of its long argument. The representation is determined by a sprintf format string.
|
|
Produces a string representation of its unsigned long argument. The representation is determined by a sprintf format string.
|
|
Produces a string representation of its double argument. The representation is determined by a sprintf format string.
|
|
Try to convert the initial part of a C string to a long.
|
|
Try to convert the initial part of a C string to an unsigned long.
|
|
Try to convert the initial part of a C string to a double.
|
|
Change (in-place) all chars in string to lower case.
|
|
Change (in-place) all chars in string to upper case.
|
|
Remove leading and trailing white noise (' ', '\n', '\t') from string. The argument is changed and returned
|
|
Remove leading and trailing white noise (' ','\n','\t') from C string.
|
dvutil-0.13.15 | [30 December, 2004] |