C# Class UniHax.Mappings

The Mappings class gives access to bestfit and Unicode normalization character mappings.
Mostrar archivo Open project: cweb/unicode-hax

Public Methods

Method Description
BuildBestfitTable ( char cAscii, List &lBestFit, string sCharset = "" ) : void

Build a data table for all of an ASCII character's bestfit mappings.

BuildTransformationsTable ( char cAscii, List &lTransformations, string sTransform = "" ) : void

Build a data table for all of an ASCII character's bestfit mappings.

GetAvailableBestfitCharsets ( ) : List

Get a unique list of the charsets from the bestfit database.

GetAvailableTransforms ( ) : List

Get a unique list of the charsets from the bestfit database.

GetBestfitMappings ( char cAscii, string sCharset = "" ) : List

Send me an ASCII character and I'll return you a list of Unicode characters that best fit map to it. Since you're not telling me a specific charset your're interested in, I'm going to send you data for all of them.

GetNormalizationMappings ( char cAscii, string sTransform = "" ) : List

Get all normalization mappings for an ASCII character. Optionally specify a specific transform as a filter.

Mappings ( ) : System

Private Methods

Method Description
Init ( ) : void

Method Details

BuildBestfitTable() public method

Build a data table for all of an ASCII character's bestfit mappings.
public BuildBestfitTable ( char cAscii, List &lBestFit, string sCharset = "" ) : void
cAscii char The ASCII character to query on.
lBestFit List Reference to a List you want to populate with data.
sCharset string An optional charset to filter results by. ///
return void

BuildTransformationsTable() public method

Build a data table for all of an ASCII character's bestfit mappings.
public BuildTransformationsTable ( char cAscii, List &lTransformations, string sTransform = "" ) : void
cAscii char The ASCII character to query on.
lTransformations List Reference to a List you want to populate with data.
sTransform string An optional charset to filter results by.
return void

GetAvailableBestfitCharsets() public method

Get a unique list of the charsets from the bestfit database.
public GetAvailableBestfitCharsets ( ) : List
return List

GetAvailableTransforms() public method

Get a unique list of the charsets from the bestfit database.
public GetAvailableTransforms ( ) : List
return List

GetBestfitMappings() public method

Send me an ASCII character and I'll return you a list of Unicode characters that best fit map to it. Since you're not telling me a specific charset your're interested in, I'm going to send you data for all of them.
public GetBestfitMappings ( char cAscii, string sCharset = "" ) : List
cAscii char The ASCII character to query on.
sCharset string An option charset name to filter by, valid values include: /// APL-ISO-IR-68 /// CP424 /// IBMGRAPH /// US-ASCII-QUOTES /// windows-1250 /// windows-1251 /// windows-1252 /// windows-1253 /// windows-1254 /// windows-1255 /// windows-1256 /// windows-1257 /// windows-1258 /// windows-874 /// CP864 /// CP037 /// CP1026 /// CP500 /// CP875 /// DINGBATS /// KEYBOARD /// SYMBOL /// symbol /// zdingbat /// JAPANESE /// GSM0338 ///
return List

GetNormalizationMappings() public method

Get all normalization mappings for an ASCII character. Optionally specify a specific transform as a filter.
public GetNormalizationMappings ( char cAscii, string sTransform = "" ) : List
cAscii char A single ASCII character.
sTransform string Valid transformations specified as: /// /// Simple_Lowercase_Mapping /// Lowercase_Mapping /// Simple_Case_Folding /// cf /// Simple_Uppercase_Mapping /// Simple_Titlecase_Mapping /// Uppercase_Mapping /// Titlecase_Mapping /// Decomposition_Mapping /// FC_NFKC ///
return List

Mappings() public method

public Mappings ( ) : System
return System