Friday, March 26, 2010

b 196 imminent: full wide-string support

Title pretty much says it all. Am swamped - what's new - with commercial activities, but am hoping to get this out over the coming weekend.

Thursday, March 4, 2010

Pantheios 1.0.1 beta 195 released: enhanced pantheios::w2m inserter

The latest release of Pantheios provides enhanced flexibility for the pantheios::w2m inserter class. As well as passing wide C-strings, as in:

  void f(wchar_t const* s)
  {
    pan::log_DEBUG("f(s=", pan::w2m(s), ")");
    . . .
  }

the new facilities allow passing wide string class instances, as in:

  void f(std::string const& s)
  {
    pan::log_DEBUG("f(s=", pan::w2m(s), ")");
    . . .
  }


and

  void f(stlsoft::simple_wstring const& s)
  {
    pan::log_DEBUG("f(s=", pan::w2m(s), ")");
    . . .
  }


Previously, the log statement would have to explicitly elicit the C-string pointer and the length, as in:


  void f(stlsoft::simple_wstring const& s)
  {
    pan::log_DEBUG("f(s=", pan::w2m(s.data(), s.length()), ")");
    . . .
  }


Obviously, this is far less expressive than the new facilities.