• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Konsole

  • Konsole
  • ExtendedCharTable
Public Member Functions | Static Public Attributes | List of all members
Konsole::ExtendedCharTable Class Reference

#include <ExtendedCharTable.h>

Public Member Functions

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

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 36 of file ExtendedCharTable.h.

Constructor & Destructor Documentation

ExtendedCharTable::ExtendedCharTable ( )

Constructs a new character table.

Definition at line 36 of file ExtendedCharTable.cpp.

ExtendedCharTable::~ExtendedCharTable ( )

Definition at line 40 of file ExtendedCharTable.cpp.

Member Function Documentation

ushort ExtendedCharTable::createExtendedChar ( const 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
unicodePointsAn array of unicode character points
lengthLength of unicodePoints

Definition at line 53 of file ExtendedCharTable.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
hashThe hash key returned by createExtendedChar()
lengthThis variable is set to the length of the character sequence.
Returns
A unicode character sequence of size length.

Definition at line 113 of file ExtendedCharTable.cpp.

Member Data Documentation

ExtendedCharTable ExtendedCharTable::instance
static

The global ExtendedCharTable instance.

Definition at line 68 of file ExtendedCharTable.h.


The documentation for this class was generated from the following files:
  • ExtendedCharTable.h
  • ExtendedCharTable.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Konsole

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal