BreakIterator.Preceding(Int32) Method
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.
Sets the iterator's current iteration position to be the last boundary position preceding the specified position.
[Android.Runtime.Register("preceding", "(I)I", "GetPreceding_IHandler", ApiSince=24)]
public virtual int Preceding (int offset);
[<Android.Runtime.Register("preceding", "(I)I", "GetPreceding_IHandler", ApiSince=24)>]
abstract member Preceding : int -> int
override this.Preceding : int -> int
Parameters
- offset
- Int32
The character position to start searching from.
Returns
The position of the last boundary position preceding "offset" (whether of not "offset" itself is a boundary position), or DONE if "offset" is the starting offset of the iterator.
- Attributes
Remarks
Sets the iterator's current iteration position to be the last boundary position preceding the specified position. (Whether the specified position is itself a boundary position or not doesn't matter-- this function always moves the iteration position to the last boundary before the specified position.) If the specified position is the starting position, returns DONE.
Java documentation for android.icu.text.BreakIterator.preceding(int)
.
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.