text - Haskell, Char, Unicode, and Turkish -
For four data types, how do I specify that I want to use Turkish instead of English for English? ToLower and toUpper Functions?
text and text-icu package
2011 As a matter of fact, your best bet is to use the package, and the job of toLower , which supports four actions taken by a locale parameter, < / P>
From:
Import data. Import text (pack, unpack) Data.Text.ICU (local name (locale), toLower) main = tarlocale = locale "tr-TR" UpStr = "ÇIİĞÖŞÜ" lower $ stront = $ unlock $ toLower trLocale $ pack up string Pt STLN $ "toLower" ++ upStr ++ "" ++ less + cents It is running:
& gt; When this example changes between string , you can also leave the data in the text format < / Code>
Comments
Post a Comment