/[pcre]/code/trunk/pcre_scanner.cc
ViewVC logotype

Diff of /code/trunk/pcre_scanner.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 529 by ph10, Tue Sep 11 12:57:06 2007 UTC revision 530 by ph10, Tue Jun 1 13:42:06 2010 UTC
# Line 121  int Scanner::LineNumber() const { Line 121  int Scanner::LineNumber() const {
121  }  }
122    
123  int Scanner::Offset() const {  int Scanner::Offset() const {
124    return input_.data() - data_.c_str();    return (int)(input_.data() - data_.c_str());
125  }  }
126    
127  bool Scanner::LookingAt(const RE& re) const {  bool Scanner::LookingAt(const RE& re) const {
# Line 153  void Scanner::ConsumeSkip() { Line 153  void Scanner::ConsumeSkip() {
153        comments_ = new vector<StringPiece>;        comments_ = new vector<StringPiece>;
154      }      }
155      // already pointing one past end, so no need to +1      // already pointing one past end, so no need to +1
156      int length = input_.data() - start_data;      int length = (int)(input_.data() - start_data);
157      if (length > 0) {      if (length > 0) {
158        comments_->push_back(StringPiece(start_data, length));        comments_->push_back(StringPiece(start_data, length));
159      }      }

Legend:
Removed from v.529  
changed lines
  Added in v.530

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12