Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4170f3b302676e06627d334e55f548a0fa971be5
Ticket: 2549196fffffffffffffffffffffffffffffffff
Add locale support for case management
User & Date: nijtmans on 2009-01-30 22:01:23
Changes

  1. icomment:
    There is a document describing this:
      <http://www.unicode.org/reports/tr21/tr21-5.html#Caseless_Matching>
    
    In short, apart from "string tolower", "string toupper" and
    "string totitle", there should be a new "string fold"
    which 'folds' the string to a case-insensite form, ready
    to be compared with another case 'folded' string.
    
    The new "string fold" function will do the same as
    "string tolower" for most locales, but turkish is an
    example where things are different.
    
    Apart from that, I would expect new functions:
        string is folded $s => [expr {[string fold $s] eq $s}]
        string is title $s => [expr {[string totitle $s] eq $s}]
    
    Looking at the unicode case fonding table:
      http://www.unicode.org/Public/3.2-Update/CaseFolding-3.2.0.txt
    It seems that turkish is the only special case.
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. username: "nijtmans"