1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
10 "golang.org/x/text/unicode/norm"
13 func ExampleForm_NextBoundary() {
14 s := norm.NFD.String("Mêlée")
16 for i := 0; i < len(s); {
17 d := norm.NFC.NextBoundaryInString(s[i:], true)
18 fmt.Printf("%[1]s: %+[1]q\n", s[i:i+d])