org.kde.koala
public class KCharsets extends Object implements QtSupport
UNKNOWN: Charset font and encoder/decoder handling.
Constructor Summary | |
---|---|
protected | KCharsets(Class dummy) |
KCharsets() Protected constructor. |
Method Summary | |
---|---|
ArrayList | availableEncodingNames()
Lists all available encodings as names. |
QTextCodec | codecForName(String name)
Provided for compatibility. |
QTextCodec | codecForName(String n, boolean ok)
Tries to find a QTextCodec to convert the given encoding from and to
Unicode. |
ArrayList | descriptiveEncodingNames()
Lists the available encoding names together with a more descriptive language. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
String | encodingForName(String descriptiveName)
Returns the encoding for a string obtained with descriptiveEncodingNames(). |
protected void | finalize() Deletes the wrapped C++ instance |
static char | fromEntity(String str)
Converts an entity to a character. |
static char | fromEntity(String str, int[] len)
Overloaded member function. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
String | languageForEncoding(String encoding)
Returns the language the encoding is used for. |
static String | resolveEntities(String text)
Scans the given string for entities (like &) and resolves them
using fromEntity. |
static String | toEntity(char ch)
Converts a char to an entity. |
UNKNOWN: Protected constructor.
Returns: the list of all encodings
UNKNOWN: Lists all available encodings as names.
Parameters: name the name of the codec
Returns: the QTextCodec. If the desired codec could not be found, it returns a default (Latin-1) codec
UNKNOWN: Provided for compatibility.
ok
will be set to false.Returns: the QTextCodec. If the desired codec could not be found, it returns a default (Latin-1) codec
UNKNOWN: Tries to find a QTextCodec to convert the given encoding from and to Unicode.
Returns: the list of descriptive encoding names
UNKNOWN: Lists the available encoding names together with a more descriptive language.
Parameters: descriptiveName the descriptive name for the encoding
Returns: the name of the encoding
UNKNOWN: Returns the encoding for a string obtained with descriptiveEncodingNames().
Parameters: str the entity
Returns: char.null if the entity could not be decoded.
UNKNOWN: Converts an entity to a character.
Parameters: str the string containing entified len is a return value, that gives the length of the decoded entity.
Returns: a decoded entity if one could be found, char.null otherwise
UNKNOWN: Overloaded member function.
Parameters: encoding the encoding for the language
Returns: the language of the encoding
UNKNOWN: Returns the language the encoding is used for.
Parameters: text the string containing the entities
Returns: the clean string
UNKNOWN: Scans the given string for entities (like &) and resolves them using fromEntity.
Parameters: ch the char to convert
Returns: the entity
UNKNOWN: Converts a char to an entity.