Back to index

lightning-sunbird  0.9+nobinonly
Defines
nsSampleWordBreaker.cpp File Reference
#include "nsSampleWordBreaker.h"
#include "pratom.h"
#include "nsLWBRKDll.h"

Go to the source code of this file.

Defines

#define IS_ASCII(c)   (0 == ( 0xFF80 & (c)))
#define ASCII_IS_ALPHA(c)   ((( 'a' <= (c)) && ((c) <= 'z')) || (( 'A' <= (c)) && ((c) <= 'Z')))
#define ASCII_IS_DIGIT(c)   (( '0' <= (c)) && ((c) <= '9'))
#define ASCII_IS_SPACE(c)   (( ' ' == (c)) || ( '\t' == (c)) || ( '\r' == (c)) || ( '\n' == (c)))
#define IS_ALPHABETICAL_SCRIPT(c)   ((c) < 0x2E80)
#define IS_HAN(c)   (( 0x3400 <= (c)) && ((c) <= 0x9fff))||(( 0xf900 <= (c)) && ((c) <= 0xfaff))
#define IS_KATAKANA(c)   (( 0x30A0 <= (c)) && ((c) <= 0x30FF))
#define IS_HIRAGANA(c)   (( 0x3040 <= (c)) && ((c) <= 0x309F))
#define IS_HALFWIDTHKATAKANA(c)   (( 0xFF60 <= (c)) && ((c) <= 0xFF9F))
#define IS_THAI(c)   (0x0E00 == (0xFF80 & (c) ))

Define Documentation

#define ASCII_IS_ALPHA (   c)    ((( 'a' <= (c)) && ((c) <= 'z')) || (( 'A' <= (c)) && ((c) <= 'Z')))

Definition at line 76 of file nsSampleWordBreaker.cpp.

#define ASCII_IS_DIGIT (   c)    (( '0' <= (c)) && ((c) <= '9'))

Definition at line 77 of file nsSampleWordBreaker.cpp.

#define ASCII_IS_SPACE (   c)    (( ' ' == (c)) || ( '\t' == (c)) || ( '\r' == (c)) || ( '\n' == (c)))

Definition at line 78 of file nsSampleWordBreaker.cpp.

#define IS_ALPHABETICAL_SCRIPT (   c)    ((c) < 0x2E80)

Definition at line 79 of file nsSampleWordBreaker.cpp.

#define IS_ASCII (   c)    (0 == ( 0xFF80 & (c)))

Definition at line 75 of file nsSampleWordBreaker.cpp.

#define IS_HALFWIDTHKATAKANA (   c)    (( 0xFF60 <= (c)) && ((c) <= 0xFF9F))

Definition at line 85 of file nsSampleWordBreaker.cpp.

#define IS_HAN (   c)    (( 0x3400 <= (c)) && ((c) <= 0x9fff))||(( 0xf900 <= (c)) && ((c) <= 0xfaff))

Definition at line 82 of file nsSampleWordBreaker.cpp.

#define IS_HIRAGANA (   c)    (( 0x3040 <= (c)) && ((c) <= 0x309F))

Definition at line 84 of file nsSampleWordBreaker.cpp.

#define IS_KATAKANA (   c)    (( 0x30A0 <= (c)) && ((c) <= 0x30FF))

Definition at line 83 of file nsSampleWordBreaker.cpp.

#define IS_THAI (   c)    (0x0E00 == (0xFF80 & (c) ))

Definition at line 86 of file nsSampleWordBreaker.cpp.