Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic

C#
Visual Basic

Azuki 1.7 Documentation
Document..::..NextGraphemeClusterIndex Method
Document Class See Also Send Feedback

Gets index of next grapheme cluster.

Namespace: Sgry.Azuki
Assembly: Azuki (in Azuki.dll) Version: 1.7.13.40248

# Syntax

C#
    public int NextGraphemeClusterIndex(
    	int index
    )

Visual Basic
    Public Function NextGraphemeClusterIndex (
    	index As Integer
    ) As Integer

#### Parameters

index
  Type: System..::..Int32
  The index to start the search from.

#### Return Value

Type: Int32
The index of the character which starts next grapheme cluster.

# Remarks

This method searches document for a grapheme cluster from given index forward. Note that this method always return an index greater than given 'index'.

"Grapheme cluster" is a sequence of characters which consists one "user perceived character" such as 'À' - 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 Class
Document..::..Document Members
Sgry.Azuki Namespace
Document..::..PrevGraphemeClusterIndex(Int32)
Document..::..IsNotDividableIndex(Int32)