equal
deleted
inserted
replaced
27 // the bytes or string x converted to the given form. |
27 // the bytes or string x converted to the given form. |
28 // A position n in x is called a boundary if conversion to the form can |
28 // A position n in x is called a boundary if conversion to the form can |
29 // proceed independently on both sides: |
29 // proceed independently on both sides: |
30 // f(x) == append(f(x[0:n]), f(x[n:])...) |
30 // f(x) == append(f(x[0:n]), f(x[n:])...) |
31 // |
31 // |
32 // References: http://unicode.org/reports/tr15/ and |
32 // References: https://unicode.org/reports/tr15/ and |
33 // http://unicode.org/notes/tn5/. |
33 // https://unicode.org/notes/tn5/. |
34 type Form int |
34 type Form int |
35 |
35 |
36 const ( |
36 const ( |
37 NFC Form = iota |
37 NFC Form = iota |
38 NFD |
38 NFD |