Kill the use of strings.ToUpper

This creates garbage and does not really help the parsing.
This commit is contained in:
Miek Gieben 2013-05-15 19:43:10 +02:00
parent c26f99da53
commit 3bba2c99c6
1 changed files with 2 additions and 2 deletions

View File

@ -545,7 +545,7 @@ func zlexer(s *scan, c chan lex) {
l.token = string(str[:stri])
if !rrtype {
if t, ok := StringToType[strings.ToUpper(l.token)]; ok {
if t, ok := StringToType[l.token]; ok {
l.value = _RRTYPE
l.torc = t
rrtype = true
@ -563,7 +563,7 @@ func zlexer(s *scan, c chan lex) {
}
}
}
if t, ok := StringToClass[strings.ToUpper(l.token)]; ok {
if t, ok := StringToClass[l.token]; ok {
l.value = _CLASS
l.torc = t
} else {