FileDocCategorySizeDatePackage
NativeRegEx.javaAPI DocAndroid 1.5 API3968Wed May 06 22:41:04 BST 2009com.ibm.icu4jni.regex

NativeRegEx

public class NativeRegEx extends Object

Fields Summary
Constructors Summary
Methods Summary
public static native intclone(int regex)
Makes a copy of a compiled regular expression.

public static native voidclose(int regex)
Closes the regular expression, recovering all resources (memory) it was holding.

public static native booleanfind(int regex, int startIndex)
Finds the first matching substring of the input string that matches the pattern.

public static native booleanfindNext(int regex)
Finds the first matching substring of the input string that matches the pattern.

public static native intgroupCount(int regex)
Gets the number of capturing groups in this regular expression's pattern.

public static native booleanhasAnchoringBounds(int regex)
Queries the anchoring property of the region bounds.

public static native booleanhasTransparentBounds(int regex)
Queries the transparency of the region bounds.

public static native booleanhitEnd(int regex)
Queries whether we hit the end of the input during the last match.

public static native booleanlookingAt(int regex, int startIndex)
Attempts to match the input string, starting from the specified index, against the pattern.

public static native booleanmatches(int regex, int startIndex)
Attempts to match the input string, beginning at startIndex, against the pattern.

public static native intopen(java.lang.String pattern, int flags)
Opens (compiles) an ICU regular expression.

public static native intregionEnd(int regex)
Queries the end of the region of the input to be considered during matching.

public static native intregionStart(int regex)
Queries the start of the region of the input to be considered during matching.

public static native booleanrequireEnd(int regex)
Queries whether more input might change a current match, but wouldn't destroy it.

public static native voidreset(int regex, int position)
Resets the matcher, cause a current match to be lost, and sets the position at which a subsequent findNext() would start.

public static native voidsetRegion(int regex, int start, int end)
Sets the region of the input to be considered during matching.

public static native voidsetText(int regex, java.lang.String text)
Sets the subject text string upon which the regular expression will look for matches.

public static native voidstartEnd(int regex, int[] startEnd)
Gets all the group information for the current match of the pattern.

public static native voiduseAnchoringBounds(int regex, boolean value)
Controls the anchoring property of the region bounds.

public static native voiduseTransparentBounds(int regex, boolean value)
Controls the transparency of the region bounds.