sl@0: #include "stlport_prefix.h" sl@0: sl@0: #include sl@0: sl@0: _STLP_BEGIN_NAMESPACE sl@0: sl@0: #if defined(_STLP_USE_WIDE_INTERFACE) sl@0: _STLP_MOVE_TO_PRIV_NAMESPACE sl@0: sl@0: wstring __ASCIIToWide(const char *ascii) { sl@0: size_t size = strlen(ascii); sl@0: wchar_t* buff = new wchar_t[size+1]; sl@0: mbstowcs(buff, ascii, size); sl@0: buff[size] = 0x00; sl@0: wstring ret(buff); sl@0: delete[] buff; sl@0: return ret; sl@0: } sl@0: string __WideToASCII(const wchar_t *wide) { sl@0: size_t size = wcslen(wide); sl@0: char* buff = new char[size+1]; sl@0: wcstombs(buff, wide, size); sl@0: buff[size] = 0; sl@0: string ret(buff); sl@0: delete[] buff; sl@0: return ret; sl@0: } sl@0: _STLP_MOVE_TO_STD_NAMESPACE sl@0: #endif sl@0: sl@0: #if !defined (_STLP_NO_FORCE_INSTANTIATE) sl@0: sl@0: template class _STLP_CLASS_DECLSPEC allocator; sl@0: sl@0: _STLP_MOVE_TO_PRIV_NAMESPACE sl@0: sl@0: template class _STLP_CLASS_DECLSPEC _STLP_alloc_proxy >; sl@0: template class _STLP_CLASS_DECLSPEC _String_base >; sl@0: sl@0: # if defined (_STLP_DEBUG) && !defined (__SUNPRO_CC) sl@0: sl@0: # if defined (_STLP_USE_MSVC6_MEM_T_BUG_WORKAROUND) sl@0: # define basic_string _STLP_NON_DBG_NO_MEM_T_NAME(str) sl@0: # else sl@0: # define basic_string _STLP_NON_DBG_NAME(str) sl@0: # endif sl@0: sl@0: template class _STLP_CLASS_DECLSPEC basic_string, allocator >; sl@0: template class _STLP_CLASS_DECLSPEC __construct_checker, allocator > >; sl@0: sl@0: # undef basic_string sl@0: # endif sl@0: sl@0: # if defined (_STLP_USE_MSVC6_MEM_T_BUG_WORKAROUND) sl@0: # define basic_string _STLP_NO_MEM_T_NAME(str) sl@0: # else sl@0: _STLP_MOVE_TO_STD_NAMESPACE sl@0: # endif sl@0: sl@0: template class _STLP_CLASS_DECLSPEC basic_string, allocator >; sl@0: sl@0: # if defined (basic_string) sl@0: _STLP_MOVE_TO_STD_NAMESPACE sl@0: # undef basic_string sl@0: # endif sl@0: sl@0: # if !defined (_STLP_NO_WCHAR_T) sl@0: template class _STLP_CLASS_DECLSPEC allocator; sl@0: sl@0: _STLP_MOVE_TO_PRIV_NAMESPACE sl@0: sl@0: template class _STLP_CLASS_DECLSPEC _String_base >; sl@0: sl@0: # if defined (_STLP_DEBUG) && !defined (__SUNPRO_CC) sl@0: # if defined (_STLP_USE_MSVC6_MEM_T_BUG_WORKAROUND) sl@0: # define basic_string _STLP_NON_DBG_NO_MEM_T_NAME(str) sl@0: # else sl@0: # define basic_string _STLP_NON_DBG_NAME(str) sl@0: # endif sl@0: sl@0: template class _STLP_CLASS_DECLSPEC basic_string, allocator >; sl@0: template class _STLP_CLASS_DECLSPEC __construct_checker, allocator > >; sl@0: sl@0: # undef basic_string sl@0: # endif sl@0: sl@0: # if defined (_STLP_USE_MSVC6_MEM_T_BUG_WORKAROUND) sl@0: # define basic_string _STLP_NO_MEM_T_NAME(str) sl@0: # else sl@0: _STLP_MOVE_TO_STD_NAMESPACE sl@0: # endif sl@0: sl@0: template class _STLP_CLASS_DECLSPEC basic_string, allocator >; sl@0: sl@0: # if defined (basic_string) sl@0: _STLP_MOVE_TO_STD_NAMESPACE sl@0: # undef basic_string sl@0: # endif sl@0: # endif sl@0: #endif sl@0: sl@0: _STLP_END_NAMESPACE