Qt 4.8
Classes | Enumerations | Functions | Variables
QUnicodeTables Namespace Reference

Classes

struct  Properties
 

Enumerations

enum  { ScriptSentinel = 32 }
 
enum  GraphemeBreak {
  GraphemeBreakOther, GraphemeBreakCR, GraphemeBreakLF, GraphemeBreakControl,
  GraphemeBreakExtend, GraphemeBreakL, GraphemeBreakV, GraphemeBreakT,
  GraphemeBreakLV, GraphemeBreakLVT
}
 
enum  LineBreakClass {
  LineBreak_OP, LineBreak_CL, LineBreak_QU, LineBreak_GL,
  LineBreak_NS, LineBreak_EX, LineBreak_SY, LineBreak_IS,
  LineBreak_PR, LineBreak_PO, LineBreak_NU, LineBreak_AL,
  LineBreak_ID, LineBreak_IN, LineBreak_HY, LineBreak_BA,
  LineBreak_BB, LineBreak_B2, LineBreak_ZW, LineBreak_CM,
  LineBreak_WJ, LineBreak_H2, LineBreak_H3, LineBreak_JL,
  LineBreak_JV, LineBreak_JT, LineBreak_SA, LineBreak_SG,
  LineBreak_SP, LineBreak_CR, LineBreak_LF, LineBreak_BK
}
 
enum  Script {
  Common, Greek, Cyrillic, Armenian,
  Hebrew, Arabic, Syriac, Thaana,
  Devanagari, Bengali, Gurmukhi, Gujarati,
  Oriya, Tamil, Telugu, Kannada,
  Malayalam, Sinhala, Thai, Lao,
  Tibetan, Myanmar, Georgian, Hangul,
  Ogham, Runic, Khmer, Nko,
  Inherited, ScriptCount = Inherited, Latin = Common, Ethiopic = Common,
  Cherokee = Common, CanadianAboriginal = Common, Mongolian = Common, Hiragana = Common,
  Katakana = Common, Bopomofo = Common, Han = Common, Yi = Common,
  OldItalic = Common, Gothic = Common, Deseret = Common, Tagalog = Common,
  Hanunoo = Common, Buhid = Common, Tagbanwa = Common, Limbu = Common,
  TaiLe = Common, LinearB = Common, Ugaritic = Common, Shavian = Common,
  Osmanya = Common, Cypriot = Common, Braille = Common, Buginese = Common,
  Coptic = Common, NewTaiLue = Common, Glagolitic = Common, Tifinagh = Common,
  SylotiNagri = Common, OldPersian = Common, Kharoshthi = Common, Balinese = Common,
  Cuneiform = Common, Phoenician = Common, PhagsPa = Common
}
 
enum  SentenceBreak {
  SentenceBreakOther, SentenceBreakSep, SentenceBreakFormat, SentenceBreakSp,
  SentenceBreakLower, SentenceBreakUpper, SentenceBreakOLetter, SentenceBreakNumeric,
  SentenceBreakATerm, SentenceBreakSTerm, SentenceBreakClose
}
 
enum  WordBreak {
  WordBreakOther, WordBreakFormat, WordBreakKatakana, WordBreakALetter,
  WordBreakMidLetter, WordBreakMidNum, WordBreakNumeric, WordBreakExtendNumLet
}
 

Functions

Q_CORE_EXPORT QUnicodeTables::LineBreakClass QT_FASTCALL lineBreakClass (uint ucs4)
 
int lineBreakClass (const QChar &ch)
 
Q_CORE_EXPORT const Properties *QT_FASTCALL properties (uint ucs4)
 
Q_CORE_EXPORT const Properties *QT_FASTCALL properties (ushort ucs2)
 
Q_CORE_EXPORT int QT_FASTCALL script (uint ucs4)
 
int script (const QChar &ch)
 

Variables

static const unsigned char uc_scripts []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ScriptSentinel 

Definition at line 162 of file qunicodetables_p.h.

◆ GraphemeBreak

◆ LineBreakClass

Enumerator
LineBreak_OP 
LineBreak_CL 
LineBreak_QU 
LineBreak_GL 
LineBreak_NS 
LineBreak_EX 
LineBreak_SY 
LineBreak_IS 
LineBreak_PR 
LineBreak_PO 
LineBreak_NU 
LineBreak_AL 
LineBreak_ID 
LineBreak_IN 
LineBreak_HY 
LineBreak_BA 
LineBreak_BB 
LineBreak_B2 
LineBreak_ZW 
LineBreak_CM 
LineBreak_WJ 
LineBreak_H2 
LineBreak_H3 
LineBreak_JL 
LineBreak_JV 
LineBreak_JT 
LineBreak_SA 
LineBreak_SG 
LineBreak_SP 
LineBreak_CR 
LineBreak_LF 
LineBreak_BK 

Definition at line 209 of file qunicodetables_p.h.

209  {
217  };

◆ Script

Enumerator
Common 
Greek 
Cyrillic 
Armenian 
Hebrew 
Arabic 
Syriac 
Thaana 
Devanagari 
Bengali 
Gurmukhi 
Gujarati 
Oriya 
Tamil 
Telugu 
Kannada 
Malayalam 
Sinhala 
Thai 
Lao 
Tibetan 
Myanmar 
Georgian 
Hangul 
Ogham 
Runic 
Khmer 
Nko 
Inherited 
ScriptCount 
Latin 
Ethiopic 
Cherokee 
CanadianAboriginal 
Mongolian 
Hiragana 
Katakana 
Bopomofo 
Han 
Yi 
OldItalic 
Gothic 
Deseret 
Tagalog 
Hanunoo 
Buhid 
Tagbanwa 
Limbu 
TaiLe 
LinearB 
Ugaritic 
Shavian 
Osmanya 
Cypriot 
Braille 
Buginese 
Coptic 
NewTaiLue 
Glagolitic 
Tifinagh 
SylotiNagri 
OldPersian 
Kharoshthi 
Balinese 
Cuneiform 
Phoenician 
PhagsPa 

Definition at line 93 of file qunicodetables_p.h.

93  {
94  Common,
95  Greek,
96  Cyrillic,
97  Armenian,
98  Hebrew,
99  Arabic,
100  Syriac,
101  Thaana,
102  Devanagari,
103  Bengali,
104  Gurmukhi,
105  Gujarati,
106  Oriya,
107  Tamil,
108  Telugu,
109  Kannada,
110  Malayalam,
111  Sinhala,
112  Thai,
113  Lao,
114  Tibetan,
115  Myanmar,
116  Georgian,
117  Hangul,
118  Ogham,
119  Runic,
120  Khmer,
121  Nko,
122  Inherited,
124  Latin = Common,
125  Ethiopic = Common,
126  Cherokee = Common,
128  Mongolian = Common,
129  Hiragana = Common,
130  Katakana = Common,
131  Bopomofo = Common,
132  Han = Common,
133  Yi = Common,
134  OldItalic = Common,
135  Gothic = Common,
136  Deseret = Common,
137  Tagalog = Common,
138  Hanunoo = Common,
139  Buhid = Common,
140  Tagbanwa = Common,
141  Limbu = Common,
142  TaiLe = Common,
143  LinearB = Common,
144  Ugaritic = Common,
145  Shavian = Common,
146  Osmanya = Common,
147  Cypriot = Common,
148  Braille = Common,
149  Buginese = Common,
150  Coptic = Common,
151  NewTaiLue = Common,
152  Glagolitic = Common,
153  Tifinagh = Common,
155  OldPersian = Common,
156  Kharoshthi = Common,
157  Balinese = Common,
158  Cuneiform = Common,
159  Phoenician = Common,
160  PhagsPa = Common
161  };

◆ SentenceBreak

◆ WordBreak

Function Documentation

◆ lineBreakClass() [1/2]

Q_CORE_EXPORT QUnicodeTables::LineBreakClass QT_FASTCALL QUnicodeTables::lineBreakClass ( uint  ucs4)

Definition at line 4349 of file qunicodetables.cpp.

Referenced by HB_GetLineBreakClass(), and lineBreakClass().

4350 {
4352 }
static const QUnicodeTables::Properties * qGetProp(uint ucs4)

◆ lineBreakClass() [2/2]

int QUnicodeTables::lineBreakClass ( const QChar ch)
inline

Definition at line 221 of file qunicodetables_p.h.

222  { return lineBreakClass(ch.unicode()); }
ushort unicode() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: qchar.h:251
int lineBreakClass(const QChar &ch)

◆ properties() [1/2]

Q_CORE_EXPORT const QUnicodeTables::Properties *QT_FASTCALL QUnicodeTables::properties ( uint  ucs4)

Definition at line 4337 of file qunicodetables.cpp.

Referenced by HB_GetGraphemeAndLineBreakClass(), HB_GetGraphemeClass(), HB_GetSentenceClass(), HB_GetUnicodeCharProperties(), HB_GetWordClass(), and heuristicSetGlyphAttributes().

4338 {
4339  int index = GET_PROP_INDEX(ucs4);
4340  return uc_properties + index;
4341 }
static const QUnicodeTables::Properties uc_properties[]
#define GET_PROP_INDEX(ucs4)
quint16 index

◆ properties() [2/2]

Q_CORE_EXPORT const QUnicodeTables::Properties *QT_FASTCALL QUnicodeTables::properties ( ushort  ucs2)

Definition at line 4343 of file qunicodetables.cpp.

4344 {
4345  int index = GET_PROP_INDEX_UCS2(ucs2);
4346  return uc_properties + index;
4347 }
static const QUnicodeTables::Properties uc_properties[]
#define GET_PROP_INDEX_UCS2(ucs2)
quint16 index

◆ script() [1/2]

Q_CORE_EXPORT int QT_FASTCALL QUnicodeTables::script ( uint  ucs4)

Definition at line 9475 of file qunicodetables.cpp.

Referenced by addFontToDatabase(), QLocalePrivate::bcp47Name(), QFontMetrics::boundingRect(), QFontMetricsF::boundingRect(), QDeclarativeCompiler::buildSignal(), QLocale::c(), QFontMetrics::charWidth(), QDeclarativeListModelParser::compileProperty(), QDeclarativeCompiler::compileTree(), QDeclarativeGestureArea::connectSignals(), QDeclarativeConnections::connectSignals(), QLocalePrivate::countryId(), QLocalePrivate::digitToCLocale(), QDeclarativeTypeData::done(), findEncoding(), QFontDatabase::findFont(), QLocalePrivate::findLocale(), findLocale(), QTextEngine::fontEngine(), QRawFont::fromFont(), getFcPattern(), getMacLocaleName(), getWinLocaleName(), QDeclarativeWorkerScriptEnginePrivate::getWorker(), QFontMetrics::inFont(), QFontMetricsF::inFont(), QFontMetrics::inFontUcs4(), QFontMetricsF::inFontUcs4(), init(), QTextEngine::itemize(), QFontMetrics::leftBearing(), QFontMetricsF::leftBearing(), lineBreakClass(), load(), loadEngine(), loadWin(), QFontDatabase::loadXlfd(), QDeclarativeWorkerScriptEnginePrivate::onMessage(), QScriptAnalysis::operator==(), QDeclarativeWorkerScriptEnginePrivate::processLoad(), QDeclarativeWorkerScriptEnginePrivate::processMessage(), registerFont(), QDeclarativeWorkerScriptEngine::registerWorkerScript(), QFontMetrics::rightBearing(), QFontMetricsF::rightBearing(), script(), QDeclarativeWorkerScriptEnginePrivate::sendMessage(), QFontComboBox::setWritingSystem(), QTextEngine::shapeText(), QSystemTrayIconPrivate::showMessage_sys(), storeFont(), QFontMetrics::width(), QFontMetricsF::width(), and QSystemLocalePrivate::winToQtFormat().

9476 {
9477  if (ucs4 > 0xffff)
9478  return Common;
9479  int script = uc_scripts[ucs4 >> 7];
9480  if (script < ScriptSentinel)
9481  return script;
9482  script = (((script - ScriptSentinel) * UnicodeBlockSize) + UnicodeBlockCount);
9483  script = uc_scripts[script + (ucs4 & 0x7f)];
9484  return script;
9485 }
static const unsigned char uc_scripts[]
Q_CORE_EXPORT int QT_FASTCALL script(uint ucs4)

◆ script() [2/2]

int QUnicodeTables::script ( const QChar ch)
inline

Definition at line 225 of file qunicodetables_p.h.

226  { return script(ch.unicode()); }
ushort unicode() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: qchar.h:251
int script(const QChar &ch)

Variable Documentation

◆ uc_scripts

const unsigned char QUnicodeTables::uc_scripts[]
static

Definition at line 8039 of file qunicodetables.cpp.

Referenced by script().