| 1 | // Copyright 2015 Garrett D'Amore |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use file except in compliance with the License. |
| 5 | // You may obtain a copy of the license at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package encoding |
| 16 | |
| 17 | import ( |
| 18 | "golang.org/x/text/encoding" |
| 19 | ) |
| 20 | |
| 21 | // ISO8859_9 represents the 8-bit ISO8859-9 scheme. |
| 22 | var ISO8859_9 encoding.Encoding |
| 23 | |
| 24 | func init() { |
| 25 | cm := &Charmap{Map: map[byte]rune{ |
| 26 | 0xD0: 'Ğ', |
| 27 | 0xDD: 'İ', |
| 28 | 0xDE: 'Ş', |
| 29 | 0xF0: 'ğ', |
| 30 | 0xFD: 'ı', |
| 31 | 0xFE: 'ş', |
| 32 | }} |
| 33 | cm.Init() |
| 34 | ISO8859_9 = cm |
| 35 | } |