github.com/dorkamotorka/go/src@v0.0.0-20230614113921-187095f0e316/unicode/casetables.go (about)

     1  // Copyright 2009 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.
     4  
     5  // TODO: This file contains the special casing rules for Turkish and Azeri only.
     6  // It should encompass all the languages with special casing rules
     7  // and be generated automatically, but that requires some API
     8  // development first.
     9  
    10  package unicode
    11  
    12  var TurkishCase SpecialCase = _TurkishCase
    13  var _TurkishCase = SpecialCase{
    14  	CaseRange{0x0049, 0x0049, d{0, 0x131 - 0x49, 0}},
    15  	CaseRange{0x0069, 0x0069, d{0x130 - 0x69, 0, 0x130 - 0x69}},
    16  	CaseRange{0x0130, 0x0130, d{0, 0x69 - 0x130, 0}},
    17  	CaseRange{0x0131, 0x0131, d{0x49 - 0x131, 0, 0x49 - 0x131}},
    18  }
    19  
    20  var AzeriCase SpecialCase = _TurkishCase