UCharacterIterator Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Abstract class that defines an API for iteration on text objects.
[Android.Runtime.Register("android/icu/text/UCharacterIterator", ApiSince=24, DoNotGenerateAcw=true)]
public abstract class UCharacterIterator : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.Lang.ICloneable
[<Android.Runtime.Register("android/icu/text/UCharacterIterator", ApiSince=24, DoNotGenerateAcw=true)>]
type UCharacterIterator = class
inherit Object
interface ICloneable
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Inheritance
- Attributes
- Implements
Remarks
Abstract class that defines an API for iteration on text objects.This is an interface for forward and backward iteration and random access into a text object. Forward iteration is done with post-increment and backward iteration is done with pre-decrement semantics, while the java.text.CharacterIterator
interface methods provided forward iteration with "pre-increment" and backward iteration with pre-decrement semantics. This API is more efficient for forward iteration over code points. The other major difference is that this API can do both code unit and code point iteration, java.text.CharacterIterator
can only iterate over code units and is limited to BMP (0 - 0xFFFF)
Java documentation for android.icu.text.UCharacterIterator
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
UCharacterIterator() |
Protected default constructor for the subclasses |
UCharacterIterator(IntPtr, JniHandleOwnership) |
Fields
Done |
Properties
CharacterIterator |
Returns a |
Class |
Returns the runtime class of this |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
Index | |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
Length | |
PeerReference | (Inherited from Object) |
Text |
Convenience method for returning the underlying text storage as as string |
ThresholdClass | |
ThresholdType |
Methods
Clone() |
Creates a copy of this iterator, independent from other iterators. |
Current() |
Returns the code unit at the current index. |
CurrentCodePoint() |
Returns the codepoint at the current index. |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetInstance(Char[], Int32, Int32) |
Returns a |
GetInstance(Char[]) |
Returns a |
GetInstance(ICharacterIterator) |
Returns a |
GetInstance(IReplaceable) |
Returns a |
GetInstance(String) |
Returns a |
GetInstance(StringBuffer) |
Returns a |
GetText(Char[], Int32) |
Fills the buffer with the underlying text storage of the iterator If the buffer capacity is not enough a exception is thrown. |
GetText(Char[]) |
Convenience override for |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
MoveCodePointIndex(Int32) |
Moves the current position by the number of code points specified, either forward or backward depending on the sign of delta (positive or negative respectively). |
MoveIndex(Int32) |
Moves the current position by the number of code units specified, either forward or backward depending on the sign of delta (positive or negative respectively). |
Next() |
Returns the UTF16 code unit at index, and increments to the next code unit (post-increment semantics). |
NextCodePoint() |
Returns the code point at index, and increments to the next code point (post-increment semantics). |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
Previous() |
Decrement to the position of the previous code unit in the text, and return it (pre-decrement semantics). |
PreviousCodePoint() |
Retreat to the start of the previous code point in the text, and return it (pre-decrement semantics). |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetToLimit() |
Sets the current index to the limit. |
SetToStart() |
Sets the current index to the start. |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (Inherited from Object) |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |