To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=82898 Issue #|82898 Summary|provide boost::lexical_cast<> for ::rtl::OUString Component|porting Version|680m234 Platform|All URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|FEATURE Priority|P3 Subcomponent|code Assigned to|mh Reported by|hub
------- Additional comments from [EMAIL PROTECTED] Tue Oct 23 17:52:27 +0000 2007 ------- boost::lexical_cast<> is a very interesting way to cast type from one to the other with meaningful results. It would be nice to have rtl specialize it to provide conversions for rtl defined type like ::rtl::OUString. The most useful is probably to get a C string. This would be something like that in inc/sal/rtl/lexical_cast.hxx namespace boost { template<> const char * lexical_cast<const char *, ::rtl::OUString>(const ::rtl::OUString & s) { return ::rtl::OUStringToOString( s, RTL_TEXTENCODING_ASCII_US ).pData->buffer; } } This could also be applied to convert to int, bool, etc. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]