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


Ignore:
Timestamp:
May 21, 2008, 1:16:21 PM (17 years ago)
Author:
dai_9181
Message:

ResourceManagerクラスを追加。既存のリソース管理モジュールの置き換えを行った。

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

Legend:

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

    r607 r622  
    1414std::wstring ToWString( const std::string &str );
    1515
     16bool IsIdentifierTopChar( char c );
     17bool IsIdentifierChar( char c );
    1618
    1719}
  • trunk/ab5.0/jenga/include/jenga.h

    r532 r622  
    55#include "common/CmdLine.h"
    66#include "common/Directory.h"
     7#include "common/EasyToken.h"
    78#include "common/Environment.h"
    89#include "common/Exception.h"
  • trunk/ab5.0/jenga/projects/jenga/jenga.vcproj

    r529 r622  
    287287            <File
    288288                RelativePath="..\..\src\common\Directory.cpp"
     289                >
     290            </File>
     291            <File
     292                RelativePath="..\..\src\common\EasyToken.cpp"
    289293                >
    290294            </File>
     
    360364            </File>
    361365            <File
     366                RelativePath="..\..\include\common\EasyToken.h"
     367                >
     368            </File>
     369            <File
    362370                RelativePath="..\..\include\common\Environment.h"
    363371                >
  • trunk/ab5.0/jenga/src/common/String.cpp

    r607 r622  
    5555    return wstr;
    5656}
     57
     58bool Jenga::Common::IsIdentifierTopChar( char c )
     59{
     60    return ( isalpha( c ) || c == '_' );
     61}
     62
     63bool Jenga::Common::IsIdentifierChar( char c )
     64{
     65    return ( IsIdentifierTopChar( c ) || isdigit( c ) );
     66}
Note: See TracChangeset for help on using the changeset viewer.