Correct spelling mistakes (mainly by correcting class name to refer to JIS X 4051). b=215963 r=jshin sr=bzbarsky

This commit is contained in:
dbaron%dbaron.org 2003-09-17 03:08:18 +00:00
Родитель fb3c155a05
Коммит 2faecb498d
6 изменённых файлов: 161 добавлений и 161 удалений

Просмотреть файл

@ -3,14 +3,14 @@
/*
Simplification of Pair Table in JIS X 4501
Simplification of Pair Table in JIS X 4051
1. The Origion Table - in 4.1.3
In JIS x 4501. The pair table is defined as below
In JIS x 4051. The pair table is defined as below
Class of
Leading Class of Trialing Char Class
Leading Class of Trailing Char Class
Char
1 2 3 4 5 6 7 8 9 10 11 12 13 13 14 14 15 16 17 18 19 20
@ -46,7 +46,7 @@
we can simplify this par table into the following
Class of
Leading Class of Trialing Char Class
Leading Class of Trailing Char Class
Char
1 2 3 4 5 6 7 8 9 10 11 12 15 16 17 18
@ -76,7 +76,7 @@
Class of
Leading Class of Trialing Char Class
Leading Class of Trailing Char Class
Char
1 [a] 7 8 9 [b]15 16 18
@ -109,177 +109,177 @@
*/
static PRUint16 gJISx4501SimplifiedPair[9] = {
static PRUint16 gJISx4051SimplifiedPair[9] = {
0x01FF, 0x0002, 0x0006, 0x0042, 0x0002, 0x0042, 0x0152, 0x0182, 0x01C2
};
PRBool XXXX::ClassesToPair(nsJISx4501Cls aCls1, nsJISx4501Cls aCls1)
PRBool XXXX::ClassesToPair(nsJISx4051Cls aCls1, nsJISx4051Cls aCls1)
{
NS_ASSERTION( (aCls1 < 9) "invalid class");
NS_ASSERTION( (aCls2 < 9) "invalid class");
return ( 0 != (gJISx4501SimplifiedPair[aCls1] & (1L << aCls2) ));
return ( 0 != (gJISx4051SimplifiedPair[aCls1] & (1L << aCls2) ));
}
#define X4501_IS_DIGIT(u) ((0x0030 >= (u)) && ((u) >= 0x0039))
#define X4051_IS_DIGIT(u) ((0x0030 >= (u)) && ((u) >= 0x0039))
nsJISx4501Cls XXXX::GetClass(
nsJISx4051Cls XXXX::GetClass(
PRUnichar aChar, PRUnichar aBefore = 0, PRUnichar aAfter = 0)
{
// take care the special case in cls 15
if( ((0x2C == aChar) || (0x2E == aChar)) &&
(X4501_IS_DIGIT(aBefore)) && X4501_IS_DIGIT(aAfter)))
(X4051_IS_DIGIT(aBefore)) && X4051_IS_DIGIT(aAfter)))
{
return kJISx4501Cls_15;
return kJISx4051Cls_15;
}
nsJISx4501Cls cls;
nsJISx4051Cls cls;
if(gSingle->Lookup(aChar, &cls))
return cls;
if(gRange->Lookup(aChar, &cls))
return cls;
return kJISx4501Cls_15;
return kJISx4051Cls_15;
}
typedef enum {
kJISx4501Cls_1 = 0,
kJISx4501Cls_2 = 1,
kJISx4501Cls_3 = 1,
kJISx4501Cls_4 = 1,
kJISx4501Cls_5 = 1,
kJISx4501Cls_6 = 1,
kJISx4501Cls_7 = 2,
kJISx4501Cls_8 = 3,
kJISx4501Cls_9 = 4,
kJISx4501Cls_10 = 5,
kJISx4501Cls_11 = 5,
kJISx4501Cls_12 = 5,
// kJISx4501Cls_13 = 0,
// kJISx4501Cls_14 = 0,
kJISx4501Cls_15 = 6,
kJISx4501Cls_16 = 7,
kJISx4501Cls_17 = 5,
kJISx4501Cls_18 = 8,
// kJISx4501Cls_19 = 0,
// kJISx4501Cls_20 = 0
} nsJISx4501Cls;
kJISx4051Cls_1 = 0,
kJISx4051Cls_2 = 1,
kJISx4051Cls_3 = 1,
kJISx4051Cls_4 = 1,
kJISx4051Cls_5 = 1,
kJISx4051Cls_6 = 1,
kJISx4051Cls_7 = 2,
kJISx4051Cls_8 = 3,
kJISx4051Cls_9 = 4,
kJISx4051Cls_10 = 5,
kJISx4051Cls_11 = 5,
kJISx4051Cls_12 = 5,
// kJISx4051Cls_13 = 0,
// kJISx4051Cls_14 = 0,
kJISx4051Cls_15 = 6,
kJISx4051Cls_16 = 7,
kJISx4051Cls_17 = 5,
kJISx4051Cls_18 = 8,
// kJISx4051Cls_19 = 0,
// kJISx4051Cls_20 = 0
} nsJISx4051Cls;
// Table 2
YYYY(kJISx4501Cls_1 , 0x0028),
YYYY(kJISx4501Cls_1 , 0x005B),
YYYY(kJISx4501Cls_1 , 0x007B),
YYYY(kJISx4501Cls_1 , 0x2018),
YYYY(kJISx4501Cls_1 , 0x201B),
YYYY(kJISx4501Cls_1 , 0x201C),
YYYY(kJISx4501Cls_1 , 0x201F),
YYYY(kJISx4501Cls_1 , 0x3008),
YYYY(kJISx4501Cls_1 , 0x300A),
YYYY(kJISx4501Cls_1 , 0x300C),
YYYY(kJISx4501Cls_1 , 0x300E),
YYYY(kJISx4501Cls_1 , 0x3010),
YYYY(kJISx4501Cls_1 , 0x3014),
YYYY(kJISx4501Cls_1 , 0x3016),
YYYY(kJISx4501Cls_1 , 0x3018),
YYYY(kJISx4501Cls_1 , 0x301A),
YYYY(kJISx4501Cls_1 , 0x301D),
YYYY(kJISx4051Cls_1 , 0x0028),
YYYY(kJISx4051Cls_1 , 0x005B),
YYYY(kJISx4051Cls_1 , 0x007B),
YYYY(kJISx4051Cls_1 , 0x2018),
YYYY(kJISx4051Cls_1 , 0x201B),
YYYY(kJISx4051Cls_1 , 0x201C),
YYYY(kJISx4051Cls_1 , 0x201F),
YYYY(kJISx4051Cls_1 , 0x3008),
YYYY(kJISx4051Cls_1 , 0x300A),
YYYY(kJISx4051Cls_1 , 0x300C),
YYYY(kJISx4051Cls_1 , 0x300E),
YYYY(kJISx4051Cls_1 , 0x3010),
YYYY(kJISx4051Cls_1 , 0x3014),
YYYY(kJISx4051Cls_1 , 0x3016),
YYYY(kJISx4051Cls_1 , 0x3018),
YYYY(kJISx4051Cls_1 , 0x301A),
YYYY(kJISx4051Cls_1 , 0x301D),
// Table 3
YYYY(kJISx4501Cls_2 , 0x0029),
YYYY(kJISx4501Cls_2 , 0x002C),
YYYY(kJISx4501Cls_2 , 0x005D),
YYYY(kJISx4501Cls_2 , 0x007D),
YYYY(kJISx4501Cls_2 , 0x2019),
YYYY(kJISx4501Cls_2 , 0x201A),
YYYY(kJISx4501Cls_2 , 0x201D),
YYYY(kJISx4501Cls_2 , 0x201E),
YYYY(kJISx4501Cls_2 , 0x3001),
YYYY(kJISx4501Cls_2 , 0x3009),
YYYY(kJISx4501Cls_2 , 0x300B),
YYYY(kJISx4501Cls_2 , 0x300D),
YYYY(kJISx4501Cls_2 , 0x300F),
YYYY(kJISx4501Cls_2 , 0x3011),
YYYY(kJISx4501Cls_2 , 0x3015),
YYYY(kJISx4501Cls_2 , 0x3017),
YYYY(kJISx4501Cls_2 , 0x3019),
YYYY(kJISx4501Cls_2 , 0x301B),
YYYY(kJISx4501Cls_2 , 0x301E),
YYYY(kJISx4501Cls_2 , 0x301F),
YYYY(kJISx4051Cls_2 , 0x0029),
YYYY(kJISx4051Cls_2 , 0x002C),
YYYY(kJISx4051Cls_2 , 0x005D),
YYYY(kJISx4051Cls_2 , 0x007D),
YYYY(kJISx4051Cls_2 , 0x2019),
YYYY(kJISx4051Cls_2 , 0x201A),
YYYY(kJISx4051Cls_2 , 0x201D),
YYYY(kJISx4051Cls_2 , 0x201E),
YYYY(kJISx4051Cls_2 , 0x3001),
YYYY(kJISx4051Cls_2 , 0x3009),
YYYY(kJISx4051Cls_2 , 0x300B),
YYYY(kJISx4051Cls_2 , 0x300D),
YYYY(kJISx4051Cls_2 , 0x300F),
YYYY(kJISx4051Cls_2 , 0x3011),
YYYY(kJISx4051Cls_2 , 0x3015),
YYYY(kJISx4051Cls_2 , 0x3017),
YYYY(kJISx4051Cls_2 , 0x3019),
YYYY(kJISx4051Cls_2 , 0x301B),
YYYY(kJISx4051Cls_2 , 0x301E),
YYYY(kJISx4051Cls_2 , 0x301F),
// Table 4
YYYY(kJISx4501Cls_3 , 0x203C),
YYYY(kJISx4501Cls_3 , 0x2044),
YYYY(kJISx4501Cls_3 , 0x301C),
YYYY(kJISx4501Cls_3 , 0x3041),
YYYY(kJISx4501Cls_3 , 0x3043),
YYYY(kJISx4501Cls_3 , 0x3045),
YYYY(kJISx4501Cls_3 , 0x3047),
YYYY(kJISx4501Cls_3 , 0x3049),
YYYY(kJISx4501Cls_3 , 0x3063),
YYYY(kJISx4501Cls_3 , 0x3083),
YYYY(kJISx4501Cls_3 , 0x3085),
YYYY(kJISx4501Cls_3 , 0x3087),
YYYY(kJISx4501Cls_3 , 0x308E),
YYYY(kJISx4501Cls_3 , 0x309D),
YYYY(kJISx4501Cls_3 , 0x309E),
YYYY(kJISx4501Cls_3 , 0x30A1),
YYYY(kJISx4501Cls_3 , 0x30A3),
YYYY(kJISx4501Cls_3 , 0x30A5),
YYYY(kJISx4501Cls_3 , 0x30A7),
YYYY(kJISx4501Cls_3 , 0x30A9),
YYYY(kJISx4501Cls_3 , 0x30C3),
YYYY(kJISx4501Cls_3 , 0x30E3),
YYYY(kJISx4501Cls_3 , 0x30E5),
YYYY(kJISx4501Cls_3 , 0x30E7),
YYYY(kJISx4501Cls_3 , 0x30EE),
YYYY(kJISx4501Cls_3 , 0x30F5),
YYYY(kJISx4501Cls_3 , 0x30F6),
YYYY(kJISx4501Cls_3 , 0x30FC),
YYYY(kJISx4501Cls_3 , 0x30FD),
YYYY(kJISx4501Cls_3 , 0x30FE),
YYYY(kJISx4051Cls_3 , 0x203C),
YYYY(kJISx4051Cls_3 , 0x2044),
YYYY(kJISx4051Cls_3 , 0x301C),
YYYY(kJISx4051Cls_3 , 0x3041),
YYYY(kJISx4051Cls_3 , 0x3043),
YYYY(kJISx4051Cls_3 , 0x3045),
YYYY(kJISx4051Cls_3 , 0x3047),
YYYY(kJISx4051Cls_3 , 0x3049),
YYYY(kJISx4051Cls_3 , 0x3063),
YYYY(kJISx4051Cls_3 , 0x3083),
YYYY(kJISx4051Cls_3 , 0x3085),
YYYY(kJISx4051Cls_3 , 0x3087),
YYYY(kJISx4051Cls_3 , 0x308E),
YYYY(kJISx4051Cls_3 , 0x309D),
YYYY(kJISx4051Cls_3 , 0x309E),
YYYY(kJISx4051Cls_3 , 0x30A1),
YYYY(kJISx4051Cls_3 , 0x30A3),
YYYY(kJISx4051Cls_3 , 0x30A5),
YYYY(kJISx4051Cls_3 , 0x30A7),
YYYY(kJISx4051Cls_3 , 0x30A9),
YYYY(kJISx4051Cls_3 , 0x30C3),
YYYY(kJISx4051Cls_3 , 0x30E3),
YYYY(kJISx4051Cls_3 , 0x30E5),
YYYY(kJISx4051Cls_3 , 0x30E7),
YYYY(kJISx4051Cls_3 , 0x30EE),
YYYY(kJISx4051Cls_3 , 0x30F5),
YYYY(kJISx4051Cls_3 , 0x30F6),
YYYY(kJISx4051Cls_3 , 0x30FC),
YYYY(kJISx4051Cls_3 , 0x30FD),
YYYY(kJISx4051Cls_3 , 0x30FE),
// Table 5
YYYY(kJISx4501Cls_4 , 0x0021),
YYYY(kJISx4501Cls_4 , 0x003F),
YYYY(kJISx4051Cls_4 , 0x0021),
YYYY(kJISx4051Cls_4 , 0x003F),
// Table 6
YYYY(kJISx4501Cls_5 , 0x003A),
YYYY(kJISx4501Cls_5 , 0x003B),
YYYY(kJISx4501Cls_5 , 0x30FB),
YYYY(kJISx4051Cls_5 , 0x003A),
YYYY(kJISx4051Cls_5 , 0x003B),
YYYY(kJISx4051Cls_5 , 0x30FB),
// Table 7
YYYY(kJISx4501Cls_6 , 0x002E),
YYYY(kJISx4501Cls_6 , 0x3002),
YYYY(kJISx4051Cls_6 , 0x002E),
YYYY(kJISx4051Cls_6 , 0x3002),
// Table 8
YYYY(kJISx4501Cls_7 , 0x2014),
YYYY(kJISx4501Cls_7 , 0x2024),
YYYY(kJISx4501Cls_7 , 0x2025),
YYYY(kJISx4501Cls_7 , 0x2026),
YYYY(kJISx4051Cls_7 , 0x2014),
YYYY(kJISx4051Cls_7 , 0x2024),
YYYY(kJISx4051Cls_7 , 0x2025),
YYYY(kJISx4051Cls_7 , 0x2026),
// Table 9
YYYY(kJISx4501Cls_8 , 0x0024),
YYYY(kJISx4501Cls_8 , 0x00A3),
YYYY(kJISx4501Cls_8 , 0x00A5),
YYYY(kJISx4501Cls_8 , 0x2116),
YYYY(kJISx4051Cls_8 , 0x0024),
YYYY(kJISx4051Cls_8 , 0x00A3),
YYYY(kJISx4051Cls_8 , 0x00A5),
YYYY(kJISx4051Cls_8 , 0x2116),
// Table 10
YYYY(kJISx4501Cls_9 , 0x0025),
YYYY(kJISx4501Cls_9 , 0x00A2),
YYYY(kJISx4501Cls_9 , 0x00B0),
YYYY(kJISx4501Cls_9 , 0x2030),
YYYY(kJISx4501Cls_9 , 0x2031),
YYYY(kJISx4501Cls_9 , 0x2032),
YYYY(kJISx4501Cls_9 , 0x2033),
YYYY(kJISx4051Cls_9 , 0x0025),
YYYY(kJISx4051Cls_9 , 0x00A2),
YYYY(kJISx4051Cls_9 , 0x00B0),
YYYY(kJISx4051Cls_9 , 0x2030),
YYYY(kJISx4051Cls_9 , 0x2031),
YYYY(kJISx4051Cls_9 , 0x2032),
YYYY(kJISx4051Cls_9 , 0x2033),
// Table 1
YYYY(kJISx4501Cls_10, 0x3000),
YYYY(kJISx4051Cls_10, 0x3000),
// Table 1
ZZZZ(kJISx4501Cls_11, 0x3000),
ZZZZ(kJISx4051Cls_11, 0x3000),

Просмотреть файл

@ -53,14 +53,14 @@
/*
Simplification of Pair Table in JIS X 4501
Simplification of Pair Table in JIS X 4051
1. The Origion Table - in 4.1.3
In JIS x 4501. The pair table is defined as below
In JIS x 4051. The pair table is defined as below
Class of
Leading Class of Trialing Char Class
Leading Class of Trailing Char Class
Char
1 2 3 4 5 6 7 8 9 10 11 12 13 13 14 14 15 16 17 18 19 20
@ -98,7 +98,7 @@
we can simplify this par table into the following
Class of
Leading Class of Trialing Char Class
Leading Class of Trailing Char Class
Char
1 2 3 4 5 6 7 8 9 10 11 12 15 16 17 18
@ -128,7 +128,7 @@
Class of
Leading Class of Trialing Char Class
Leading Class of Trailing Char Class
Char
1 [a] 7 8 9 [b]15 16 18
@ -148,7 +148,7 @@
4. We add THAI characters and make it breakable w/ all ther class
Class of
Leading Class of Trialing Char Class
Leading Class of Trailing Char Class
Char
1 [a] 7 8 9 [b]15 16 18 THAI
@ -224,7 +224,7 @@ GETCLASSFROMTABLE(const PRUint32* t, PRUint16 l)
static inline int
IS_HALFWIDTH_IN_JISx4501_CLASS3(PRUnichar u)
IS_HALFWIDTH_IN_JISx4051_CLASS3(PRUnichar u)
{
return ((0xff66 <= (u)) && ((u) <= 0xff70));
}
@ -244,7 +244,7 @@ IS_SPACE(PRUnichar u)
return ((u) == 0x0020 || (u) == 0x0009 || (u) == 0x000a || (u) == 0x000d || (u)==0x200b);
}
PRInt8 nsJISx4501LineBreaker::GetClass(PRUnichar u)
PRInt8 nsJISx4051LineBreaker::GetClass(PRUnichar u)
{
PRUint16 h = u & 0xFF00;
PRUint16 l = u & 0x00ff;
@ -292,10 +292,10 @@ PRInt8 nsJISx4501LineBreaker::GetClass(PRUnichar u)
case 0x9e: c = GetClass(0x309b); break;
case 0x9f: c = GetClass(0x309c); break;
default:
if(IS_HALFWIDTH_IN_JISx4501_CLASS3(u))
c = 1; // jis x4501 class 3
if(IS_HALFWIDTH_IN_JISx4051_CLASS3(u))
c = 1; // jis x4051 class 3
else
c = 5; // jis x4501 class 11
c = 5; // jis x4051 class 11
break;
};
// Halfwidth Katakana variants
@ -317,7 +317,7 @@ PRInt8 nsJISx4501LineBreaker::GetClass(PRUnichar u)
return c;
}
PRBool nsJISx4501LineBreaker::GetPair(PRInt8 c1, PRInt8 c2)
PRBool nsJISx4051LineBreaker::GetPair(PRInt8 c1, PRInt8 c2)
{
NS_ASSERTION( c1 < MAX_CLASSES ,"illegal classes 1");
NS_ASSERTION( c2 < MAX_CLASSES ,"illegal classes 2");
@ -326,28 +326,28 @@ PRBool nsJISx4501LineBreaker::GetPair(PRInt8 c1, PRInt8 c2)
}
nsJISx4501LineBreaker::nsJISx4501LineBreaker(
nsJISx4051LineBreaker::nsJISx4051LineBreaker(
const PRUnichar* aNoBegin, PRInt32 aNoBeginLen,
const PRUnichar* aNoEnd, PRInt32 aNoEndLen
)
{
}
nsJISx4501LineBreaker::~nsJISx4501LineBreaker()
nsJISx4051LineBreaker::~nsJISx4051LineBreaker()
{
}
NS_IMPL_ISUPPORTS1(nsJISx4501LineBreaker, nsILineBreaker)
NS_IMPL_ISUPPORTS1(nsJISx4051LineBreaker, nsILineBreaker)
#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) (((c)==U_PERIOD)||((c)==U_COMMA)||((c)==U_RIGHT_SINGLE_QUOTATION_MARK))
#define NUMERIC_CLASS 6 // JIS x4501 class 15 is now map to simplified class 6
#define CHARACTER_CLASS 8 // JIS x4501 class 18 is now map to simplified class 8
#define NUMERIC_CLASS 6 // JIS x4051 class 15 is now map to simplified class 6
#define CHARACTER_CLASS 8 // JIS x4051 class 18 is now map to simplified class 8
#define IS_ASCII_DIGIT(u) ((0x0030 <= (u)) && ((u) <= 0x0039))
PRInt8 nsJISx4501LineBreaker::ContextualAnalysis(
PRInt8 nsJISx4051LineBreaker::ContextualAnalysis(
PRUnichar prev, PRUnichar cur, PRUnichar next
)
{
@ -383,7 +383,7 @@ PRInt8 nsJISx4501LineBreaker::ContextualAnalysis(
}
NS_IMETHODIMP nsJISx4501LineBreaker::BreakInBetween(
NS_IMETHODIMP nsJISx4051LineBreaker::BreakInBetween(
const PRUnichar* aText1 , PRUint32 aTextLen1,
const PRUnichar* aText2 , PRUint32 aTextLen2,
PRBool *oCanBreak)
@ -455,7 +455,7 @@ ROUTE_CJK_BETWEEN:
}
NS_IMETHODIMP nsJISx4501LineBreaker::Next(
NS_IMETHODIMP nsJISx4051LineBreaker::Next(
const PRUnichar* aText, PRUint32 aLen, PRUint32 aPos,
PRUint32* oNext, PRBool *oNeedMoreText)
{
@ -541,7 +541,7 @@ ROUTE_CJK_NEXT:
return NS_OK;
}
NS_IMETHODIMP nsJISx4501LineBreaker::Prev(
NS_IMETHODIMP nsJISx4051LineBreaker::Prev(
const PRUnichar* aText, PRUint32 aLen, PRUint32 aPos,
PRUint32* oPrev, PRBool *oNeedMoreText)
{

Просмотреть файл

@ -41,14 +41,14 @@
#include "nsILineBreaker.h"
class nsJISx4501LineBreaker : public nsILineBreaker
class nsJISx4051LineBreaker : public nsILineBreaker
{
NS_DECL_ISUPPORTS
public:
nsJISx4501LineBreaker(const PRUnichar *aNoBegin, PRInt32 aNoBeginLen,
nsJISx4051LineBreaker(const PRUnichar *aNoBegin, PRInt32 aNoBeginLen,
const PRUnichar* aNoEnd, PRInt32 aNoEndLen);
virtual ~nsJISx4501LineBreaker();
virtual ~nsJISx4051LineBreaker();
NS_IMETHOD BreakInBetween(const PRUnichar* aText1 , PRUint32 aTextLen1,
const PRUnichar* aText2 , PRUint32 aTextLen2,

Просмотреть файл

@ -126,31 +126,31 @@ nsLWBreakerFImp::GetBreaker(const nsAString& aParam, nsILineBreaker** oResult)
}
if( aParam.Equals(NS_LITERAL_STRING("ja")) )
{
*oResult = new nsJISx4501LineBreaker (
*oResult = new nsJISx4051LineBreaker (
gJaNoBegin, sizeof(gJaNoBegin)/sizeof(PRUnichar),
gJaNoEnd, sizeof(gJaNoEnd)/sizeof(PRUnichar));
}
else if(aParam.Equals(NS_LITERAL_STRING("ko")))
{
*oResult = new nsJISx4501LineBreaker (
*oResult = new nsJISx4051LineBreaker (
gKoNoBegin, sizeof(gKoNoBegin)/sizeof(PRUnichar),
gKoNoEnd, sizeof(gKoNoEnd)/sizeof(PRUnichar));
}
else if(aParam.Equals(NS_LITERAL_STRING("tw")))
{
*oResult = new nsJISx4501LineBreaker (
*oResult = new nsJISx4051LineBreaker (
gTwNoBegin, sizeof(gTwNoBegin)/sizeof(PRUnichar),
gTwNoEnd, sizeof(gTwNoEnd)/sizeof(PRUnichar));
}
else if(aParam.Equals(NS_LITERAL_STRING("cn")))
{
*oResult = new nsJISx4501LineBreaker (
*oResult = new nsJISx4051LineBreaker (
gCnNoBegin, sizeof(gCnNoBegin)/sizeof(PRUnichar),
gCnNoEnd, sizeof(gCnNoEnd)/sizeof(PRUnichar));
}
else
{
*oResult = new nsJISx4501LineBreaker (nsnull, 0, nsnull, 0);
*oResult = new nsJISx4051LineBreaker (nsnull, 0, nsnull, 0);
}
if (*oResult == NULL) return NS_ERROR_OUT_OF_MEMORY;

Просмотреть файл

@ -1,12 +1,12 @@
<HTML>
<HEAD>
<TITLE>
Analysis of JIS x4501 to Unicode General Category Mapping
Analysis of JIS X 4051 to Unicode General Category Mapping
</TITLE>
</HEAD>
<BODY>
<H1>
Analysis of JIS x4501 to Unicode General Category Mapping
Analysis of JIS X 4051 to Unicode General Category Mapping
</H1>
<TABLE BORDER=3>
<TR BGCOLOR=blue><TH><TH>

Просмотреть файл

@ -55,7 +55,7 @@ open ( UNICODATA , "< ../../unicharutil/tools/UnicodeData-Latest.txt")
######################################################################
#
# Open the JIS x4501 Class file
# Open the JIS X 4051 Class file
#
######################################################################
open ( CLASS , "< jisx4501class.txt")
@ -63,7 +63,7 @@ open ( CLASS , "< jisx4501class.txt")
######################################################################
#
# Open the JIS x4501 Class simplified mapping
# Open the JIS X 4051 Class simplified mapping
#
######################################################################
open ( SIMP , "< jisx4501simp.txt")
@ -94,12 +94,12 @@ $hthmlheader = <<END_OF_HTML;
<HTML>
<HEAD>
<TITLE>
Analysis of JIS x4501 to Unicode General Category Mapping
Analysis of JIS X 4051 to Unicode General Category Mapping
</TITLE>
</HEAD>
<BODY>
<H1>
Analysis of JIS x4501 to Unicode General Category Mapping
Analysis of JIS X 4051 to Unicode General Category Mapping
</H1>
END_OF_HTML
print OUT $hthmlheader;