StringConverter< char_type > Struct Template Reference
Main Page
Topics
Modules
Namespaces
Classes
Files
Class List
Class Hierarchy
Class Members
StringConverter< char_type > Struct Template Reference
Classes
|
Public Types
|
Public Member Functions
#include <StringConverter.h>
Public Types
typedef char_type *
converted_type
Public Member Functions
char_type *
Convert
(System::String^in)
Member Typedef Documentation
typedef char_type*
converted_type
Member Function Documentation
char_type* Convert
(
System::String^
in
)
inline
73
{
74
// This should all be const, but INode methods are not const-correct
75
// Rather than jump through hoops to use const_casting wrapper functors,
76
// I'm stripping off the const here.
77
78
pin_ptr<const wchar_t> pinned( PtrToStringChars(in) );
79
mString = mString.FromUTF16(static_cast<const wchar_t*>(pinned));
80
return
const_cast<
char_type*
>
(mString.data());
81
}