message: Added NarrowString(const wchar_t* WideStr) overload
diff: @@ -47,6 +47,16 @@ inline std::string NarrowString(const std::wstring &WideStr)
  return NarrowStr;
  }
  +inline std::string NarrowString(const wchar_t* WideStr)
  +{
  + std::string NarrowStr;
  + const std::ctype<wchar_t>& ctfacet = std::use_facet< std::ctype<wchar_t> >( std::wstringstream().getloc() ) ;
  + for( auto CurrWChar = WideStr; *CurrWChar != 0; ++CurrWChar )
  + NarrowStr.push_back( ctfacet.narrow( *CurrWChar, 0 ) );
  +
  + return NarrowStr;
  +}
  +
  inline std::wstring WidenString(const char* Str)
  {
  std::wstring WideStr;
  