Changeset 607 in dev for trunk/ab5.0/jenga


Ignore:
Timestamp:
May 16, 2008, 9:39:03 PM (17 years ago)
Author:
dai_9181
Message:

Jenga::Common::ToString関数を追加。

Location:
trunk/ab5.0/jenga
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/jenga/include/common/String.h

    r590 r607  
    1111std::string& StringReplace( std::string& str, const std::string sb, const std::string sa );
    1212
     13std::string ToString( int n );
    1314std::wstring ToWString( const std::string &str );
    1415
  • trunk/ab5.0/jenga/src/common/String.cpp

    r590 r607  
    2626}
    2727
     28std::string Jenga::Common::ToString( int n )
     29{
     30    char temp[255];
     31    wsprintf( temp, "%d", n );
     32    return temp;
     33}
     34
    2835std::wstring Jenga::Common::ToWString( const std::string &str )
    2936{
Note: See TracChangeset for help on using the changeset viewer.