Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsJISx4501LineBreaker.cpp File Reference
#include "nsJISx4501LineBreaker.h"
#include "pratom.h"
#include "nsLWBRKDll.h"
#include "jisx4501class.h"
#include "th_char.h"
#include "rulebrk.h"
#include "nsUnicharUtils.h"

Go to the source code of this file.

Defines

#define TH_UNICODE
#define MAX_CLASSES   10
#define CLASS_THAI   9
#define U_PERIOD   ((PRUnichar) '.')
#define U_COMMA   ((PRUnichar) ',')
#define U_SPACE   ((PRUnichar) ' ')
#define U_RIGHT_SINGLE_QUOTATION_MARK   ((PRUnichar) 0x2019)
#define NEED_CONTEXTUAL_ANALYSIS(c)
#define NUMERIC_CLASS   6
#define CHARACTER_CLASS   8
#define IS_ASCII_DIGIT(u)   (0x0030 <= (u) && (u) <= 0x0039)

Functions

static int GETCLASSFROMTABLE (const PRUint32 *t, PRUint16 l)
static int IS_HALFWIDTH_IN_JISx4051_CLASS3 (PRUnichar u)
static int IS_CJK_CHAR (PRUnichar u)
static int IS_SPACE (PRUnichar u)

Variables

static const PRUint16 gPair [MAX_CLASSES]

Define Documentation

Definition at line 367 of file nsJISx4501LineBreaker.cpp.

#define CLASS_THAI   9

Definition at line 221 of file nsJISx4501LineBreaker.cpp.

#define IS_ASCII_DIGIT (   u)    (0x0030 <= (u) && (u) <= 0x0039)

Definition at line 368 of file nsJISx4501LineBreaker.cpp.

#define MAX_CLASSES   10

Definition at line 199 of file nsJISx4501LineBreaker.cpp.

Value:
((c) == U_PERIOD || \
                                     (c) == U_COMMA || \
                                     (c) == U_RIGHT_SINGLE_QUOTATION_MARK)

Definition at line 363 of file nsJISx4501LineBreaker.cpp.

Definition at line 366 of file nsJISx4501LineBreaker.cpp.

Definition at line 47 of file nsJISx4501LineBreaker.cpp.

#define U_COMMA   ((PRUnichar) ',')

Definition at line 360 of file nsJISx4501LineBreaker.cpp.

#define U_PERIOD   ((PRUnichar) '.')

Definition at line 359 of file nsJISx4501LineBreaker.cpp.

Definition at line 362 of file nsJISx4501LineBreaker.cpp.

#define U_SPACE   ((PRUnichar) ' ')

Definition at line 361 of file nsJISx4501LineBreaker.cpp.


Function Documentation

static int GETCLASSFROMTABLE ( const PRUint32 t,
PRUint16  l 
) [inline, static]

Definition at line 216 of file nsJISx4501LineBreaker.cpp.

{
  return ((((t)[(l>>3)]) >> ((l & 0x0007)<<2)) & 0x000f);
}

Here is the caller graph for this function:

static int IS_CJK_CHAR ( PRUnichar  u) [inline, static]

Definition at line 232 of file nsJISx4501LineBreaker.cpp.

{
  return ((0x1100 <= (u) && (u) <= 0x11ff) ||
          (0x2e80 <= (u) && (u) <= 0xd7ff) ||
          (0xf900 <= (u) && (u) <= 0xfaff) ||
          (0xff00 <= (u) && (u) <= 0xffef) );
}

Here is the caller graph for this function:

static int IS_HALFWIDTH_IN_JISx4051_CLASS3 ( PRUnichar  u) [inline, static]

Definition at line 226 of file nsJISx4501LineBreaker.cpp.

{
  return ((0xff66 <= (u)) && ((u) <= 0xff70));
}

Here is the caller graph for this function:

static int IS_SPACE ( PRUnichar  u) [inline, static]

Definition at line 241 of file nsJISx4501LineBreaker.cpp.

{
  return ((u) == 0x0020 || (u) == 0x0009 || (u) == 0x000a || (u) == 0x000d || (u)==0x200b);
}

Here is the caller graph for this function:


Variable Documentation

Initial value:
 {
  0x01FF, 
  0x0002, 
  0x0006, 
  0x0042, 
  0x0002, 
  0x0002, 
  0x0152, 
  0x0182, 
  0x01C2,
  0x0000
}

Definition at line 201 of file nsJISx4501LineBreaker.cpp.