develooper Front page | perl.perl5.porters | Postings from May 2012

RFC: Unicode::UCD::all_casefolds()

Thread Next
From:
Karl Williamson
Date:
May 24, 2012 11:42
Subject:
RFC: Unicode::UCD::all_casefolds()
Message ID:
4FBE811A.70503@khwilliamson.com
Unicode::UCD::casefold() is a function which takes a code point argument 
and returns a hash of information about its casefold.  The first time 
the function is called, it constructs and caches a hash which contains a 
sub-hash for every code point that has an "interesting" casefold (there 
are only somewhat over a thousand such code points).

I have found it useful in writing .t tests to have access to the entire 
data structure, so I've written a minimal function to return that, and 
have tentatively called it all_casefolds().

My question is: "Would this be a function that others would conceivably 
want to use, and hence should be documented"?  If so, is there a better 
name?

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About