Typesafe printf-like formatting with boost::format
8
Convert an ebcdic buffer to an ascii buffer.
8
Converts a string representation of a number with any base(binary, octal, decimal, hexadecimal, up to base 36) to a long int.
10
Transform any basic type to string. Very handy for log messages
Usage:
int i(12);
float j(3.14);
cout
Usage:
int i(12);
float j(3.14);
cout
7
Simple tests for dir and file existance. Path creation and removal.
10
template function to create a boost::shared_ptr in the form
boost::shared_ptr classPtr = new_ptr(Arg1, Arg2);
You can also make new_ptr_access a friend of className and make the constructor and destructor private.
This keeps the end user from:
Creating an instance manually on the heap
Creating an instance manually on the stack
Deleting a shared_ptr manually using "delete get()"
boost::shared_ptr classPtr = new_ptr(Arg1, Arg2);
You can also make new_ptr_access a friend of className and make the constructor and destructor private.
This keeps the end user from:
Creating an instance manually on the heap
Creating an instance manually on the stack
Deleting a shared_ptr manually using "delete get()"
16
Format a phone number with php.
10
Format Bytes
3
mySizeMemory:this function just formats the output the way I like Input integer in Bytes, outputs easily human readable format
3
mySizeDisk: this function just formats the output the way I like
Input integer in Bytes, outputs easily human readable format
Input integer in Bytes, outputs easily human readable format
7
mattrmiller
Formats milliseconds into a duration string.









