Changeset 509 in dev for trunk/ab5.0/abdev/ab_common/src


Ignore:
Timestamp:
Apr 29, 2008, 12:27:10 PM (16 years ago)
Author:
dai_9181
Message:

Symbolクラスをab_commonプロジェクトに移動した。

File:
1 moved

Legend:

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

    r508 r509  
    11#include "stdafx.h"
    22
    3 #include <Compiler.h>
    4 #include <Symbol.h>
     3using namespace ActiveBasic::Common::Lexical;
    54
    65const NamespaceSupporter *Symbol::namespaceSupporter = NULL;
     
    1615}
    1716
    18 bool Symbol::IsEqualSymbol( const NamespaceScopes &namespaceScopes, const string &name ) const
     17bool Symbol::IsEqualSymbol( const NamespaceScopes &namespaceScopes, const std::string &name ) const
    1918{
    2019    if( GetName() != name ){
     
    3635        // 静的メンバを考慮
    3736        NamespaceScopes namespaceScopes( symbol.GetNamespaceScopes() );
    38         string name = namespaceScopes[namespaceScopes.size()-1] + "." + symbol.GetName();
     37        std::string name = namespaceScopes[namespaceScopes.size()-1] + "." + symbol.GetName();
    3938        namespaceScopes.pop_back();
    4039
     
    4342    return false;
    4443}
    45 bool Symbol::IsEqualSymbol( const char *fullName ) const
    46 {
    47     char AreaName[VN_SIZE] = "";        //オブジェクト変数
    48     char NestName[VN_SIZE] = "";        //入れ子メンバ
    49     bool isNest = SplitMemberName( fullName, AreaName, NestName );
    50 
    51     if( IsEqualSymbol( NamespaceScopes( AreaName ), NestName ) ){
    52         return true;
    53     }
    54 
    55     return false;
    56 }
Note: See TracChangeset for help on using the changeset viewer.