コード例 #1
0
ファイル: tokens.cpp プロジェクト: binoc-software/mozilla-cvs
int CCommentToken::consume(char aChar, CScanner& aScanner) {
  int result=0;
  if('/'==mTextValue[1]) {
    result=aScanner.readUntil(mTextValue,gNewlines,false);    
  }
  else {
    bool done=false;
    nsCAutoString temp("/");
    while(!done){
      result = aScanner.readUntil(mTextValue,temp,true);
      if (kNoError!=result)
        break;
      char theChar=mTextValue[mTextValue.Length()-2];
      done=('*'==theChar);
    }
  }
  return result;
};
コード例 #2
0
ファイル: tokens.cpp プロジェクト: binoc-software/mozilla-cvs
int CQuotedStringToken::consume(char aChar, CScanner& aScanner) {
  mTextValue=aChar;
  int result=aScanner.readUntil(mTextValue,aChar,true);
  return result;
};
コード例 #3
0
ファイル: tokens.cpp プロジェクト: binoc-software/mozilla-cvs
int CCompilerDirectiveToken::consume(char aChar, CScanner& aScanner) {
  mTextValue=aChar;
  int result=aScanner.readUntil(mTextValue,gNewlines,false);
  return result;
};