FMStatementTokenRecogniser.h 690 B

1234567891011121314151617181920212223242526
  1. //
  2. // FMStatementTokenRecogniser.h
  3. // FMDB
  4. //
  5. // Created by openthread on 3/5/14.
  6. // Copyright (c) 2014 openthread. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. /**
  10. * The FMStatementTokenRecogniser protocol.
  11. */
  12. @protocol FMStatementTokenRecogniser <NSObject>
  13. @required
  14. /**
  15. * Recognise token with a scanner.
  16. * @param scanner The recognising scanner.
  17. * @param tokenPosition Begining token position to recognise of scanner.
  18. *
  19. * @return Returns the recognised token range of scanner. If not recognised, the location of return value is `NSNotFound`.
  20. */
  21. - (NSRange)recogniseRangeWithScanner:(NSScanner *)scanner currentTokenPosition:(NSUInteger *)tokenPosition;
  22. @end