~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/mime/grammar.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
)
10
10
 
11
11
// isTSpecial returns true if rune is in 'tspecials' as defined by RFC
12
 
// 1531 and RFC 2045.
 
12
// 1521 and RFC 2045.
13
13
func isTSpecial(rune int) bool {
14
14
        return strings.IndexRune(`()<>@,;:\"/[]?=`, rune) != -1
15
15
}
16
16
 
17
17
// IsTokenChar returns true if rune is in 'token' as defined by RFC
18
 
// 1531 and RFC 2045.
 
18
// 1521 and RFC 2045.
19
19
func IsTokenChar(rune int) bool {
20
20
        // token := 1*<any (US-ASCII) CHAR except SPACE, CTLs,
21
21
        //             or tspecials>