Gets index of previous grapheme cluster.
Namespace: Sgry.AzukiAssembly: Azuki (in Azuki.dll) Version: 1.7.13.40248
Syntax
C# |
---|
public int PrevGraphemeClusterIndex( int index ) |
Visual Basic |
---|
Public Function PrevGraphemeClusterIndex ( index As Integer ) As Integer |
Parameters
- index
- Type: System..::..Int32
The index to start the search from.
Return Value
Type: Int32The index of the character which starts previous grapheme cluster.
Remarks
This method searches text for a grapheme cluster from given index backward. Note that this method always return an index less than given 'index'.
"Grapheme cluster" is a sequence of characters which consists one "user perceived character" such as 'À' - sequence of U+0041 and U+0300; a capital 'A' with grave.
This method recognizes character sequences below as a grapheme cluster:
- CR+LF
- Surrogate pair
- Combining character sequence
- Variation sequence (including IVS)
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentOutOfRangeException |
See Also
Document..::..PrevGraphemeClusterIndex(Int32)