Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsUnicodeRange.h File Reference
#include "nscore.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

PRUint32 FindCharUnicodeRange (PRUnichar ch)
const char * LangGroupFromUnicodeRange (PRUint8 unicodeRange)

Variables

const PRUint8 kRangeCyrillic = 0
const PRUint8 kRangeGreek = 1
const PRUint8 kRangeTurkish = 2
const PRUint8 kRangeHebrew = 3
const PRUint8 kRangeArabic = 4
const PRUint8 kRangeBaltic = 5
const PRUint8 kRangeThai = 6
const PRUint8 kRangeKorean = 7
const PRUint8 kRangeJapanese = 8
const PRUint8 kRangeSChinese = 9
const PRUint8 kRangeTChinese = 10
const PRUint8 kRangeDevanagari = 11
const PRUint8 kRangeTamil = 12
const PRUint8 kRangeArmenian = 13
const PRUint8 kRangeBengali = 14
const PRUint8 kRangeCanadian = 15
const PRUint8 kRangeEthiopic = 16
const PRUint8 kRangeGeorgian = 17
const PRUint8 kRangeGujarati = 18
const PRUint8 kRangeGurmukhi = 19
const PRUint8 kRangeKhmer = 20
const PRUint8 kRangeMalayalam = 21
const PRUint8 kRangeSpecificItemNum = 22
const PRUint8 kRangeSetStart = 30
const PRUint8 kRangeSetLatin = 30
const PRUint8 kRangeSetCJK = 31
const PRUint8 kRangeSetEnd = 31
const PRUint8 kRangeSurrogate = 32
const PRUint8 kRangePrivate = 33
const PRUint8 kRangeMisc = 34
const PRUint8 kRangeUnassigned = 35
const PRUint8 kRangeSyriac = 36
const PRUint8 kRangeThaana = 37
const PRUint8 kRangeOriya = 38
const PRUint8 kRangeTelugu = 39
const PRUint8 kRangeKannada = 40
const PRUint8 kRangeSinhala = 41
const PRUint8 kRangeLao = 42
const PRUint8 kRangeTibetan = 43
const PRUint8 kRangeMyanmar = 44
const PRUint8 kRangeCherokee = 45
const PRUint8 kRangeOghamRunic = 46
const PRUint8 kRangeMongolian = 47
const PRUint8 kRangeMathOperators = 48
const PRUint8 kRangeMiscTechnical = 49
const PRUint8 kRangeControlOpticalEnclose = 50
const PRUint8 kRangeBoxBlockGeometrics = 51
const PRUint8 kRangeMiscSymbols = 52
const PRUint8 kRangeDingbats = 53
const PRUint8 kRangeBraillePattern = 54
const PRUint8 kRangeYi = 55
const PRUint8 kRangeCombiningDiacriticalMarks = 56
const PRUint8 kRangeSpecials = 57
const PRUint8 kRangeTableBase = 128
const PRUint8 kRangeTertiaryTable = 145
const char * gUnicodeRangeToLangGroupTable []

Function Documentation

Definition at line 432 of file nsUnicodeRange.cpp.

{
  PRUint32 range;

  //search the first table
  range = gUnicodeSubrangeTable[0][ch >> 12];
  
  if (range < kRangeTableBase)
    // we try to get a specific range 
    return range;

  // otherwise, we have one more table to look at
  range = gUnicodeSubrangeTable[range - kRangeTableBase][(ch & 0x0f00) >> 8];
  if (range < kRangeTableBase)
    return range;
  if (range < kRangeTertiaryTable)
    return gUnicodeSubrangeTable[range - kRangeTableBase][(ch & 0x00f0) >> 4];

  // Yet another table to look at : U+0700 - U+16FF : 128 code point blocks
  return gUnicodeTertiaryRangeTable[(ch - 0x0700) >> 7];
}

Here is the caller graph for this function:

const char* LangGroupFromUnicodeRange ( PRUint8  unicodeRange) [inline]

Definition at line 117 of file nsUnicodeRange.h.

{
  if (kRangeSpecificItemNum > unicodeRange)  
    return gUnicodeRangeToLangGroupTable[unicodeRange];
  return nsnull;
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 43 of file nsUnicodeRange.cpp.

Definition at line 51 of file nsUnicodeRange.h.

Definition at line 60 of file nsUnicodeRange.h.

Definition at line 52 of file nsUnicodeRange.h.

Definition at line 61 of file nsUnicodeRange.h.

Definition at line 99 of file nsUnicodeRange.h.

Definition at line 102 of file nsUnicodeRange.h.

Definition at line 62 of file nsUnicodeRange.h.

Definition at line 93 of file nsUnicodeRange.h.

Definition at line 104 of file nsUnicodeRange.h.

Definition at line 98 of file nsUnicodeRange.h.

Definition at line 47 of file nsUnicodeRange.h.

Definition at line 58 of file nsUnicodeRange.h.

Definition at line 101 of file nsUnicodeRange.h.

Definition at line 63 of file nsUnicodeRange.h.

Definition at line 64 of file nsUnicodeRange.h.

Definition at line 48 of file nsUnicodeRange.h.

Definition at line 65 of file nsUnicodeRange.h.

Definition at line 66 of file nsUnicodeRange.h.

Definition at line 50 of file nsUnicodeRange.h.

Definition at line 55 of file nsUnicodeRange.h.

Definition at line 88 of file nsUnicodeRange.h.

Definition at line 67 of file nsUnicodeRange.h.

Definition at line 54 of file nsUnicodeRange.h.

Definition at line 90 of file nsUnicodeRange.h.

Definition at line 68 of file nsUnicodeRange.h.

Definition at line 96 of file nsUnicodeRange.h.

Definition at line 82 of file nsUnicodeRange.h.

Definition at line 100 of file nsUnicodeRange.h.

Definition at line 97 of file nsUnicodeRange.h.

Definition at line 95 of file nsUnicodeRange.h.

Definition at line 92 of file nsUnicodeRange.h.

Definition at line 94 of file nsUnicodeRange.h.

Definition at line 86 of file nsUnicodeRange.h.

Definition at line 81 of file nsUnicodeRange.h.

Definition at line 56 of file nsUnicodeRange.h.

Definition at line 76 of file nsUnicodeRange.h.

Definition at line 77 of file nsUnicodeRange.h.

Definition at line 75 of file nsUnicodeRange.h.

Definition at line 74 of file nsUnicodeRange.h.

Definition at line 89 of file nsUnicodeRange.h.

Definition at line 105 of file nsUnicodeRange.h.

Definition at line 70 of file nsUnicodeRange.h.

Definition at line 80 of file nsUnicodeRange.h.

Definition at line 84 of file nsUnicodeRange.h.

Definition at line 107 of file nsUnicodeRange.h.

Definition at line 59 of file nsUnicodeRange.h.

Definition at line 57 of file nsUnicodeRange.h.

Definition at line 87 of file nsUnicodeRange.h.

Definition at line 108 of file nsUnicodeRange.h.

Definition at line 85 of file nsUnicodeRange.h.

Definition at line 53 of file nsUnicodeRange.h.

Definition at line 91 of file nsUnicodeRange.h.

Definition at line 49 of file nsUnicodeRange.h.

Definition at line 83 of file nsUnicodeRange.h.

Definition at line 103 of file nsUnicodeRange.h.