Browse files

Added extra arguments to SExpression scan method.

  • Loading branch information...
1 parent ba14c3e commit e96b3f8c731c3cc5a6f565e37567242022b321f6 @notahat notahat committed May 20, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 AikoSExpression.h
View
4 AikoSExpression.h
@@ -7,7 +7,9 @@ namespace Aiko {
class SExpression {
public:
- char* scan(char* head, char* tail) { return SExpression::scan(head, tail, this); }
+ char* scan(char* head) { return SExpression::scan(head, head + strlen(head), this); }
+ char* scan(char* head, unsigned int length) { return SExpression::scan(head, head+length, this); }
+ char* scan(char* head, char* tail) { return SExpression::scan(head, tail, this); }
char* head() { return head_; }
char* tail() { return tail_; }

0 comments on commit e96b3f8

Please sign in to comment.