[mirror] Go text processing support
Перейти к файлу
Marcel van Lohuizen 191b11aac8 go.text/transform: added RemoveFunc transform for removing individual
runes from the input. This corresponds to ICU's Remove transform.
For example, to remove accents from characters one could use RemoveFunc
as follows:
        nonspacingMark := func(r rune) bool {
                return unicode.Is(unicode.Mn, r)
        }
        transform.Chain(norm.NFD, transform.RemoveFunc(nonspacingMark), norm.NFC)
(Once norm.Form implements Transformer; guess what will be my next CL.)

R=r
CC=golang-dev, nigeltao
https://golang.org/cl/23220043
2013-11-26 08:29:24 +01:00
cldr go.text/cldr: fix bug introduced with changeset 17795:749d02164043: 2013-08-18 09:05:32 +02:00
collate go.text/language: added tag matching algorithm. This algorithm is not based 2013-10-07 13:14:45 +02:00
encoding go.text/encoding: add the Nop encoding. 2013-11-23 10:09:50 +11:00
language go.text/language: canonicalize deprecated regions and scripts. 2013-11-08 12:52:05 +01:00
transform go.text/transform: added RemoveFunc transform for removing individual 2013-11-26 08:29:24 +01:00
unicode/norm go.text/unicode/norm: as quickSpan now no longer uses reorderBuffer, we can 2013-11-18 20:12:15 +01:00
AUTHORS go.text: create repository 2013-03-06 13:57:33 -08:00
CONTRIBUTORS go.text: create repository 2013-03-06 13:57:33 -08:00
LICENSE go.text: create repository 2013-03-06 13:57:33 -08:00
PATENTS go.text: create repository 2013-03-06 13:57:33 -08:00
README go.text: create repository 2013-03-06 13:57:33 -08:00
codereview.cfg go.text: create repository 2013-03-06 13:57:33 -08:00

README

This repository holds supplementary Go libraries for text processing, many involving Unicode.

To submit changes to this repository, see http://golang.org/doc/contribute.html.