# decompositions

Search:
Group by:

This module provides characters decomposition used by the normalization form algorithms

# Imports

decompositions_data

# Procs

    proc decomposition(cp: Rune): seq[Rune] {...}{.raises: [], tags: [].}

  Return a sequence of the decomposition for a given code point. Returns an empty seq when there is no decomposition.

    proc canonicalDecomposition(cp: Rune): seq[Rune] {...}{.raises: [], tags: [].}

  Return a sequence of the canonical decomposition for a given code point. It will return an empty sequence when there is no decomposition.

# Iterators

    iterator decomposition(cp: Rune): Rune {...}{.inline, raises: [], tags: [].}

  Iterates over the decomposition of a given rune, returning each decomposition rune. Returns at most 18 runes. This is not a full decomposition.

    iterator canonicalDecomposition(cp: Rune): Rune {...}{.inline, raises: [], tags: [].}

  Iterates over the canonical decomposition of a given rune, returning each decomposition rune. Returns at most 2 runes. This is not a full decomposition.