Changeset 341 in dev for trunk


Ignore:
Timestamp:
Oct 6, 2007, 12:56:48 AM (17 years ago)
Author:
dai_9181
Message:
 
Location:
trunk/jenga
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/jenga/include/smoothie/BasicFixed.h

    r328 r341  
    216216#define ESC_ENDINTERFACE    (char)0xAA
    217217#define ESC_DELEGATE        (char)0xAB
     218#define ESC_IMPLEMENTS      (char)0xAC
  • trunk/jenga/include/smoothie/LexicalAnalysis.h

    r300 r341  
    55
    66#include <windows.h>
     7
     8#include <jenga/include/common/String.h>
    79
    810typedef std::vector<int> Subscripts;
     
    2931int GetStringInPare_RemovePare(char *buffer,const char *ReadBuffer);
    3032void GetArrange(char *variable,char *variAnswer, Subscripts &subscripts );
     33void SplitParameter( const std::string &src, Jenga::Common::Strings &dests, bool isClear = true );
    3134bool SplitMemberName( const char *desc, char *object, char *member, ReferenceKind &refType );
    3235bool SplitMemberName( const char *desc, char *object, char *member );
  • trunk/jenga/src/smoothie/LexicalAnalysis.cpp

    r333 r341  
    238238    return i;
    239239}
     240
     241void SplitParameter( const std::string &src, Jenga::Common::Strings &dests, bool isClear )
     242{
     243    const char *buffer = src.c_str();
     244    int i = 0;
     245
     246    if( isClear )
     247    {
     248        dests.clear();
     249    }
     250
     251    while( buffer[i] )
     252    {
     253        char result[8192];
     254        i = GetOneParameter( buffer, i, result );
     255        dests.push_back( result );
     256    }
     257}
     258
    240259
    241260bool SplitMemberName( const char *desc, char *object, char *member, ReferenceKind &refType ){
Note: See TracChangeset for help on using the changeset viewer.