Ignore:
Timestamp:
Sep 15, 2008, 4:41:01 PM (16 years ago)
Author:
dai
Message:
  • Unicodeの文字列をデータテーブルに挿入する際、コピーするサイズが半減してしまう不具合を修正。
  • std::string Jenga::Common::ToString( const std::wstring &wstr )メソッドを追加。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/ab_common/src/Lexical/DataTable.cpp

    r700 r747  
    3939int DataTable::AddWString( const std::wstring &wstr )
    4040{
    41     return AddBinary( wstr.c_str(), static_cast<int>(wstr.size()) + sizeof(wchar_t) );
     41    return AddBinary( wstr.c_str(), static_cast<int>((wstr.length()+1)*sizeof(wchar_t)));
    4242}
    4343int DataTable::AddSpace( int size )
Note: See TracChangeset for help on using the changeset viewer.