StringConverter< char_type > Struct Template Reference

StringConverter< char_type > Struct Template Reference

#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
75  {
76  // This should all be const, but INode methods are not const-correct
77  // Rather than jump through hoops to use const_casting wrapper functors,
78  // I'm stripping off the const here.
79 
80  pin_ptr<const wchar_t> pinned( PtrToStringChars(in) );
81  mString = mString.FromUTF16(static_cast<const wchar_t*>(pinned));
82  return const_cast<char_type*>(mString.data());
83  }