KCharset Class Reference

[Kangaroo Index] [Kangaroo Hierarchy] [Headers]


#include <kdeobjc/KCharsets.h>

Inherits: NSObject (GNUstepBase)

Public Members


-init

Default initializer

-initFromName:

Prepares charset of given name

Parameters:
name Name of the charset

-initFromCharset:

Copy a KCharset

-initFromQtCharset:

Prepares charset from Qt's charset id

Parameters:
id Qt's id of the charset

-name

Gives name of the charset

Returns:
name of the charset

-isDisplayable

Check if charset is displayable

Returns:
YES if it is displayable

-isDisplayable:

Check if charset is displayable using given font

Parameters:
family name of the font
Returns:
YES if it is displayable

-isAvailable

Check if charset is defined for use with KDE (in charsets classes or in charsets config files)

Returns:
YES if it is available

-ok

Check if charset is OK. In fact the same as isAvailable

Returns:
YES if it is available

-isRegistered

Check if charset is registered for use in mime messages. YES also for some not-yet-registered charsets (UTF-7 and UTF-8)

Returns:
YES if it is registered

-setQFont:

Set charset of QFont to this. Should be used instead of -[QFont setCharSet]

Parameters:
fnt Font we want set charset of
Returns:
The font after setting the charset

-qtCharset

Get QT's id of charset. Qt has id defined only for ISO-8859-* charsets, so their charset functions should not be used

Returns:
The Qt font charset id

-bits

Get nuber of bits needed to represent a character. As for now only 8-bit characters are supported well

Returns:
Number of bits per character

-printable:

check if character is printable in selected charset

Parameters:
chr Character to check
Returns:
YES if it is printable

-xCharset

Gets X charset identifier (last two fields of X font name)

Returns:
string representing X charset name

  • Author: Richard Dale
  • Documentation generated by duke@tipitina on Sat May 6 11:42:52 EDT 2000
Kdoc