ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

string.cpp
Go to the documentation of this file.
00001 #include "stlport_prefix.h"
00002 
00003 #include <string>
00004 
00005 _STLP_BEGIN_NAMESPACE
00006 
00007 #if defined(_STLP_USE_WIDE_INTERFACE)
00008 _STLP_MOVE_TO_PRIV_NAMESPACE
00009 
00010 wstring __ASCIIToWide(const char *ascii) {
00011     size_t size = strlen(ascii);
00012     wchar_t* buff = new wchar_t[size+1];
00013     mbstowcs(buff, ascii, size);
00014     buff[size] = 0x00;
00015     wstring ret(buff);
00016     delete[] buff;
00017     return ret;
00018 }
00019 string __WideToASCII(const wchar_t *wide) {
00020     size_t size = wcslen(wide);
00021     char* buff = new char[size+1];
00022     wcstombs(buff, wide, size);
00023     buff[size] = 0;
00024     string ret(buff);
00025     delete[] buff;
00026     return ret;
00027 }
00028 _STLP_MOVE_TO_STD_NAMESPACE
00029 #endif
00030 
00031 #if !defined (_STLP_NO_FORCE_INSTANTIATE)
00032 
00033 template class _STLP_CLASS_DECLSPEC allocator<char>;
00034 
00035 _STLP_MOVE_TO_PRIV_NAMESPACE
00036 
00037 template class _STLP_CLASS_DECLSPEC _STLP_alloc_proxy<char*, char, allocator<char> >;
00038 template class _STLP_CLASS_DECLSPEC _String_base<char, allocator<char> >;
00039 
00040 #  if defined (_STLP_DEBUG) && !defined (__SUNPRO_CC) && !defined (_STLP_USE_MSVC6_MEM_T_BUG_WORKAROUND)
00041 #    define basic_string _STLP_NON_DBG_NAME(str)
00042 
00043 template class _STLP_CLASS_DECLSPEC basic_string<char, char_traits<char>, allocator<char> >;
00044 template class _STLP_CLASS_DECLSPEC __construct_checker<basic_string<char, char_traits<char>, allocator<char> > >;
00045 
00046 #    undef basic_string
00047 #  endif
00048 
00049 #  if defined (_STLP_USE_MSVC6_MEM_T_BUG_WORKAROUND)
00050 #    define basic_string _STLP_NO_MEM_T_NAME(str)
00051 #  else
00052 _STLP_MOVE_TO_STD_NAMESPACE
00053 #  endif
00054 
00055 template class _STLP_CLASS_DECLSPEC basic_string<char, char_traits<char>, allocator<char> >;
00056 
00057 #  if defined (basic_string)
00058 _STLP_MOVE_TO_STD_NAMESPACE
00059 #    undef basic_string
00060 #  endif
00061 
00062 #  if !defined (_STLP_NO_WCHAR_T)
00063 template class _STLP_CLASS_DECLSPEC allocator<wchar_t>;
00064 
00065 _STLP_MOVE_TO_PRIV_NAMESPACE
00066 
00067 template class _STLP_CLASS_DECLSPEC _String_base<wchar_t, allocator<wchar_t> >;
00068 
00069 #    if defined (_STLP_DEBUG) && !defined (__SUNPRO_CC) && !defined (_STLP_USE_MSVC6_MEM_T_BUG_WORKAROUND)
00070 #      define basic_string _STLP_NON_DBG_NAME(str)
00071 
00072 template class _STLP_CLASS_DECLSPEC basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >;
00073 template class _STLP_CLASS_DECLSPEC __construct_checker<basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > >;
00074 
00075 #      undef basic_string
00076 #    endif
00077 
00078 #    if defined (_STLP_USE_MSVC6_MEM_T_BUG_WORKAROUND)
00079 #      define basic_string _STLP_NO_MEM_T_NAME(str)
00080 #    else
00081 _STLP_MOVE_TO_STD_NAMESPACE
00082 #    endif
00083 
00084 template class _STLP_CLASS_DECLSPEC basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >;
00085 
00086 #    if defined (basic_string)
00087 _STLP_MOVE_TO_STD_NAMESPACE
00088 #      undef basic_string
00089 #    endif
00090 #  endif
00091 #endif
00092 
00093 _STLP_END_NAMESPACE

Generated on Sat May 26 2012 04:34:04 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.