/*
 * Name: OGRegularExpressionEnumerator.h
 * Project: OgreKit
 *
 * Creation Date: Sep 03 2003
 * Author: Isao Sonobe <sonoisa (AT) muse (DOT) ocn (DOT) ne (DOT) jp>
 * Copyright: Copyright (c) 2003 Isao Sonobe, All rights reserved.
 * License: OgreKit License
 *
 * Encoding: UTF8
 * Tabsize: 4
 */

#import <Foundation/Foundation.h>

@class OGRegularExpression;

// Exception
extern NSString	* const OgreEnumeratorException;

@interface OGRegularExpressionEnumerator : NSEnumerator <NSCopying, NSCoding>
{
	OGRegularExpression	*_regex;				// K\IuWFNg
	NSObject<OGStringProtocol>			*_targetString;			// Ώە
	unichar             *_UTF16TargetString;	// UTF16ł̌Ώە
	unsigned			_lengthOfTargetString;	// [_targetString length]
	NSRange				_searchRange;			// ͈
	unsigned			_searchOptions;			// IvV
	int					_terminalOfLastMatch;	// OɃ}bI[ʒu  (_region->end[0] / sizeof(unichar))
	unsigned			_startLocation;			// }b`Jnʒu
	BOOL				_isLastMatchEmpty;		// Õ}b`󕶎񂾂ǂ
	
	unsigned			_numberOfMatches;		// }b`
}

// S}bzŕԂB
- (NSArray*)allObjects;
// ̃}b`ʂԂB
- (id)nextObject;

// description
- (NSString*)description;

@end


syntax highlighted by Code2HTML, v. 0.9.1