• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Konsole

Konsole::ExtendedCharTable

Konsole::ExtendedCharTable Class Reference

A table which stores sequences of unicode characters, referenced by hash keys. More...

#include <Character.h>

List of all members.


Public Member Functions

ushort createExtendedChar (ushort *unicodePoints, ushort length)
 ExtendedCharTable ()
ushort * lookupExtendedChar (ushort hash, ushort &length) const
 ~ExtendedCharTable ()

Static Public Attributes

static ExtendedCharTable instance

Detailed Description

A table which stores sequences of unicode characters, referenced by hash keys.

The hash key itself is the same size as a unicode character ( ushort ) so that it can occupy the same space in a structure.

Definition at line 162 of file Character.h.


Constructor & Destructor Documentation

ExtendedCharTable::ExtendedCharTable (  ) 

Constructs a new character table.

Definition at line 437 of file Emulation.cpp.

ExtendedCharTable::~ExtendedCharTable (  ) 

Definition at line 440 of file Emulation.cpp.


Member Function Documentation

ushort ExtendedCharTable::createExtendedChar ( ushort *  unicodePoints,
ushort  length 
)

Adds a sequences of unicode characters to the table and returns a hash code which can be used later to look up the sequence using lookupExtendedChar().

If the same sequence already exists in the table, the hash of the existing sequence will be returned.

Parameters:
unicodePoints An array of unicode character points
length Length of unicodePoints

Definition at line 384 of file Emulation.cpp.

ushort * ExtendedCharTable::lookupExtendedChar ( ushort  hash,
ushort &  length 
) const

Looks up and returns a pointer to a sequence of unicode characters which was added to the table using createExtendedChar().

Parameters:
hash The hash key returned by createExtendedChar()
length This variable is set to the length of the character sequence.
Returns:
A unicode character sequence of size length.

Definition at line 419 of file Emulation.cpp.


Member Data Documentation

ExtendedCharTable ExtendedCharTable::instance [static]

The global ExtendedCharTable instance.

Definition at line 194 of file Character.h.


The documentation for this class was generated from the following files:
  • Character.h
  • Emulation.cpp

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal