C# Class Kimono.KCharsets

Inheritance: Object, IDisposable
Afficher le fichier Open project: 0xd34df00d/Qross

Protected Properties

Свойство Type Description
interceptor Qyoto.SmokeInvocation

Méthodes publiques

Méthode Description
AvailableEncodingNames ( ) : List Lists all available encodings as names.
CodecForName ( string name ) : QTextCodec Provided for compatibility. name="name" the name of the codec
CodecForName ( string n, bool ok ) : QTextCodec Tries to find a QTextCodec to convert the given encoding from and to Unicode. If no codec could be found, the ISO 8859-1 codec will be returned an and ok will be set to false. name="ok" true if a matching codec has been found, false if not
DescriptionForEncoding ( string encoding ) : string @brief Returns a long description for an encoding name. name="encoding" the encoding for the language
DescriptiveEncodingNames ( ) : List Lists the available encoding names together with a more descriptive language.
Dispose ( ) : void
EncodingForName ( string descriptiveName ) : string Returns the encoding for a string obtained with descriptiveEncodingNames(). name="descriptiveName" the descriptive name for the encoding
EncodingsByScript ( ) : List> Lists the available encoding names grouped by script (or language that uses them).
FromEntity ( string str ) : QChar @brief Converts an entity to a character. The string must contain only the entity without the trailing ';'. name="str" the entity
FromEntity ( string str, int &len ) : QChar Overloaded member function. Tries to find an entity in the string str. name="str" the string containing entified name="len" is a return value, that gives the length of the decoded entity.
ResolveEntities ( string text ) : string Scans the given string for entities (like &) and resolves them using fromEntity. name="text" the string containing the entities
ToEntity ( QChar ch ) : string Converts a QChar to an entity. The returned string does already contain the leading '&' and the trailing ';'. name="ch" the char to convert

Méthodes protégées

Méthode Description
CreateProxy ( ) : void
KCharsets ( Type dummy ) : System

Private Methods

Méthode Description
KCharsets ( ) : System

Method Details

AvailableEncodingNames() public méthode

Lists all available encodings as names.
public AvailableEncodingNames ( ) : List
Résultat List

CodecForName() public méthode

Provided for compatibility. name="name" the name of the codec
public CodecForName ( string name ) : QTextCodec
name string
Résultat Qyoto.QTextCodec

CodecForName() public méthode

Tries to find a QTextCodec to convert the given encoding from and to Unicode. If no codec could be found, the ISO 8859-1 codec will be returned an and ok will be set to false. name="ok" true if a matching codec has been found, false if not
public CodecForName ( string n, bool ok ) : QTextCodec
n string
ok bool
Résultat Qyoto.QTextCodec

CreateProxy() protected méthode

protected CreateProxy ( ) : void
Résultat void

DescriptionForEncoding() public méthode

@brief Returns a long description for an encoding name. name="encoding" the encoding for the language
public DescriptionForEncoding ( string encoding ) : string
encoding string
Résultat string

DescriptiveEncodingNames() public méthode

Lists the available encoding names together with a more descriptive language.
public DescriptiveEncodingNames ( ) : List
Résultat List

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EncodingForName() public méthode

Returns the encoding for a string obtained with descriptiveEncodingNames(). name="descriptiveName" the descriptive name for the encoding
public EncodingForName ( string descriptiveName ) : string
descriptiveName string
Résultat string

EncodingsByScript() public méthode

Lists the available encoding names grouped by script (or language that uses them).
public EncodingsByScript ( ) : List>
Résultat List>

FromEntity() public static méthode

@brief Converts an entity to a character. The string must contain only the entity without the trailing ';'. name="str" the entity
public static FromEntity ( string str ) : QChar
str string
Résultat Qyoto.QChar

FromEntity() public static méthode

Overloaded member function. Tries to find an entity in the string str. name="str" the string containing entified name="len" is a return value, that gives the length of the decoded entity.
public static FromEntity ( string str, int &len ) : QChar
str string
len int
Résultat Qyoto.QChar

KCharsets() protected méthode

protected KCharsets ( Type dummy ) : System
dummy System.Type
Résultat System

ResolveEntities() public static méthode

Scans the given string for entities (like &) and resolves them using fromEntity. name="text" the string containing the entities
public static ResolveEntities ( string text ) : string
text string
Résultat string

ToEntity() public static méthode

Converts a QChar to an entity. The returned string does already contain the leading '&' and the trailing ';'. name="ch" the char to convert
public static ToEntity ( QChar ch ) : string
ch Qyoto.QChar
Résultat string

Property Details

interceptor protected_oe property

protected SmokeInvocation,Qyoto interceptor
Résultat Qyoto.SmokeInvocation