C# Class Kimono.KCharsets

Inheritance: Object, IDisposable
ファイルを表示 Open project: 0xd34df00d/Qross

Protected Properties

Property Type Description
interceptor Qyoto.SmokeInvocation

Public Methods

Method 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

Protected Methods

Method Description
CreateProxy ( ) : void
KCharsets ( Type dummy ) : System

Private Methods

Method Description
KCharsets ( ) : System

Method Details

AvailableEncodingNames() public method

Lists all available encodings as names.
public AvailableEncodingNames ( ) : List
return List

CodecForName() public method

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

CodecForName() public method

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
return Qyoto.QTextCodec

CreateProxy() protected method

protected CreateProxy ( ) : void
return void

DescriptionForEncoding() public method

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

DescriptiveEncodingNames() public method

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

Dispose() public method

public Dispose ( ) : void
return void

EncodingForName() public method

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

EncodingsByScript() public method

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

FromEntity() public static method

@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
return Qyoto.QChar

FromEntity() public static method

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
return Qyoto.QChar

KCharsets() protected method

protected KCharsets ( Type dummy ) : System
dummy System.Type
return System

ResolveEntities() public static method

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
return string

ToEntity() public static method

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
return string

Property Details

interceptor protected_oe property

protected SmokeInvocation,Qyoto interceptor
return Qyoto.SmokeInvocation