Xo is experimental. The source is now public on GitHub, or try Xo in your browser.
Menu · norm

Docs

std/norm

On this page

Index

Types

Form

enum Form {
  Nfc
  Nfd
  Nfkc
  Nfkd
} derive Display

A normalization form.

Source: std/norm.xo:8

Functions

unicode_version

fn unicode_version() -> Str

The Unicode version of the tables (15.0.0).

Source: std/norm.xo:21

normalize

fn normalize(s: Str, f: Form) -> Str

s in the form f (Form.String). ASCII text is returned as it is.

Source: std/norm.xo:24

is_normalized

fn is_normalized(s: Str, f: Form) -> Bool

Whether s is already in the form f (Form.IsNormalString).

Source: std/norm.xo:26

↑ index