Boost.Nowide
Public Member Functions | List of all members
boost::nowide::args Class Reference

args is a class that fixes standard main() function arguments and changes them to UTF-8 under Microsoft Windows. More...

#include <boost/nowide/args.hpp>

Public Member Functions

 args (int &argc, char **&argv)
 
 args (int &argc, char **&argv, char **&en)
 
 ~args ()
 

Detailed Description

args is a class that fixes standard main() function arguments and changes them to UTF-8 under Microsoft Windows.

The class uses GetCommandLineW(), CommandLineToArgvW() and GetEnvironmentStringsW() in order to obtain the information. It does not relates to actual values of argc,argv and env under Windows.

It restores the original values in its destructor

Note
the class owns the memory of the newly allocated strings

Constructor & Destructor Documentation

boost::nowide::args::args ( int &  argc,
char **&  argv 
)
inline

Fix command line agruments

boost::nowide::args::args ( int &  argc,
char **&  argv,
char **&  en 
)
inline

Fix command line agruments and environment

boost::nowide::args::~args ( )
inline

Restore original argc,argv,env values, if changed


The documentation for this class was generated from the following file: