{"issue":{"user":{"id":391975,"login":"Lenny222","url":"https://api.github.com/users/Lenny222","avatar_url":"https://secure.gravatar.com/avatar/b9a00c3b74b6d0632bcfe9d48027d971?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b9a00c3b74b6d0632bcfe9d48027d971"},"milestone":null,"title":"\"char\": add a type and function for Unicode Character Categories","created_at":"2011-12-20T11:42:24Z","labels":[],"updated_at":"2011-12-22T09:04:52Z","state":"closed","id":2611998,"closed_at":"2011-12-22T09:04:52Z","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/graydon/rust/issues/1348","body":"For Unicode Character Categories see http://www.fileformat.info/info/unicode/category/index.htm\r\n\r\nHaskell implements the type \"GeneralCategory\" and a function to determine a character's \"GeneralCategory\".\r\nTheir implementation goes like this:\r\n\r\n* the script https://github.com/ghc/packages-base/blob/master/cbits/ubconfc\r\n* takes the Unicode Character Database (UCD) http://www.unicode.org/Public/6.0.0/ucd/UnicodeData.txt\r\n* and generates https://github.com/ghc/packages-base/blob/master/cbits/WCsubst.c\r\n\r\nI propose to write a Python script, which does something similar.\r\n\r\nHaving such a type and function in Rust enables us to correctly implement functions in the \"char\" module. See http://haskell.org/ghc/docs/6.12.2/html/libraries/base-4.2.0.1/src/Data-Char.html","number":1348,"url":"https://api.github.com/repos/graydon/rust/issues/1348","comments":4,"assignee":null},"action":"closed"}