[Pharo-project] Unicode depending on Zinc

Guillermo Polito guillermopolito at gmail.com
Wed Mar 14 11:06:21 EDT 2012


Hi,

Does this method make sense? (Do we want Unicode to update itself?)

Unicode class>>initializeCaseMappings
    "Unicode initializeCaseMappings"
    ToCasefold := IdentityDictionary new.
    ToUpper := IdentityDictionary new.
    ToLower := IdentityDictionary new.
    UIManager default informUserDuring: [ :bar| | result |
        bar value: 'Downloading Unicode data'.
        (result := ZnClient get: '
http://www.unicode.org/Public/UNIDATA/CaseFolding.txt') isSuccess
            ifFalse: [ ^ self error: 'Download failed' ].
        bar value: 'Updating Case Mappings'.
        self parseCaseMappingFrom: result contents readStream ].

Guille
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120314/6472d8da/attachment-0001.html>


More information about the Pharo-dev mailing list