C# Class UniHax.Mappings

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

Méthodes publiques

Méthode 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

Méthode Description
Init ( ) : void

Method Details

BuildBestfitTable() public méthode

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. ///
Résultat void

BuildTransformationsTable() public méthode

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.
Résultat void

GetAvailableBestfitCharsets() public méthode

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

GetAvailableTransforms() public méthode

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

GetBestfitMappings() public méthode

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 ///
Résultat List

GetNormalizationMappings() public méthode

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 ///
Résultat List

Mappings() public méthode

public Mappings ( ) : System
Résultat System