| 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 { |
| 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 |
} |
} |