зеркало из https://github.com/mozilla/gecko-dev.git
Make some static data const in layout. Bug 204073, patch by ataylor@its.to
(Andrew Taylor), r=bzbarsky, sr=alecf
This commit is contained in:
Родитель
2d8c24058a
Коммит
8b80364217
|
@ -263,7 +263,7 @@ ShowVerifyReflowFlags()
|
|||
#ifdef MOZ_REFLOW_PERF
|
||||
class ReflowCountMgr;
|
||||
|
||||
static const char * kGrandTotalsStr = "Grand Totals";
|
||||
static const char kGrandTotalsStr[] = "Grand Totals";
|
||||
#define NUM_REFLOW_TYPES 5
|
||||
|
||||
// Counting Class
|
||||
|
|
|
@ -479,10 +479,10 @@ static PRBool TamilToText(PRInt32 ordinal, nsString& result)
|
|||
}
|
||||
|
||||
|
||||
static const char* gLowerRomanCharsA = "ixcm";
|
||||
static const char* gUpperRomanCharsA = "IXCM";
|
||||
static const char* gLowerRomanCharsB = "vld?";
|
||||
static const char* gUpperRomanCharsB = "VLD?";
|
||||
static const char gLowerRomanCharsA[] = "ixcm";
|
||||
static const char gUpperRomanCharsA[] = "IXCM";
|
||||
static const char gLowerRomanCharsB[] = "vld?";
|
||||
static const char gUpperRomanCharsB[] = "VLD?";
|
||||
|
||||
static PRBool RomanToText(PRInt32 ordinal, nsString& result, const char* achars, const char* bchars)
|
||||
{
|
||||
|
@ -529,7 +529,7 @@ static PRBool RomanToText(PRInt32 ordinal, nsString& result, const char* achars,
|
|||
}
|
||||
|
||||
#define ALPHA_SIZE 26
|
||||
static PRUnichar gLowerAlphaChars[ALPHA_SIZE] =
|
||||
static const PRUnichar gLowerAlphaChars[ALPHA_SIZE] =
|
||||
{
|
||||
0x0061, 0x0062, 0x0063, 0x0064, 0x0065, // A B C D E
|
||||
0x0066, 0x0067, 0x0068, 0x0069, 0x006A, // F G H I J
|
||||
|
@ -539,7 +539,7 @@ static PRUnichar gLowerAlphaChars[ALPHA_SIZE] =
|
|||
0x007A // Z
|
||||
};
|
||||
|
||||
static PRUnichar gUpperAlphaChars[ALPHA_SIZE] =
|
||||
static const PRUnichar gUpperAlphaChars[ALPHA_SIZE] =
|
||||
{
|
||||
0x0041, 0x0042, 0x0043, 0x0044, 0x0045, // A B C D E
|
||||
0x0046, 0x0047, 0x0048, 0x0049, 0x004A, // F G H I J
|
||||
|
@ -553,7 +553,7 @@ static PRUnichar gUpperAlphaChars[ALPHA_SIZE] =
|
|||
#define KATAKANA_CHARS_SIZE 48
|
||||
// Page 94 Writing Systems of The World
|
||||
// after modification by momoi
|
||||
static PRUnichar gKatakanaChars[KATAKANA_CHARS_SIZE] =
|
||||
static const PRUnichar gKatakanaChars[KATAKANA_CHARS_SIZE] =
|
||||
{
|
||||
0x30A2, 0x30A4, 0x30A6, 0x30A8, 0x30AA, // a i u e o
|
||||
0x30AB, 0x30AD, 0x30AF, 0x30B1, 0x30B3, // ka ki ku ke ko
|
||||
|
@ -569,7 +569,7 @@ static PRUnichar gKatakanaChars[KATAKANA_CHARS_SIZE] =
|
|||
};
|
||||
|
||||
#define HIRAGANA_CHARS_SIZE 48
|
||||
static PRUnichar gHiraganaChars[HIRAGANA_CHARS_SIZE] =
|
||||
static const PRUnichar gHiraganaChars[HIRAGANA_CHARS_SIZE] =
|
||||
{
|
||||
0x3042, 0x3044, 0x3046, 0x3048, 0x304A, // a i u e o
|
||||
0x304B, 0x304D, 0x304F, 0x3051, 0x3053, // ka ki ku ke ko
|
||||
|
@ -587,7 +587,7 @@ static PRUnichar gHiraganaChars[HIRAGANA_CHARS_SIZE] =
|
|||
|
||||
#define HIRAGANA_IROHA_CHARS_SIZE 47
|
||||
// Page 94 Writing Systems of The World
|
||||
static PRUnichar gHiraganaIrohaChars[HIRAGANA_IROHA_CHARS_SIZE] =
|
||||
static const PRUnichar gHiraganaIrohaChars[HIRAGANA_IROHA_CHARS_SIZE] =
|
||||
{
|
||||
0x3044, 0x308D, 0x306F, 0x306B, 0x307B, // i ro ha ni ho
|
||||
0x3078, 0x3068, 0x3061, 0x308A, 0x306C, // he to chi ri nu
|
||||
|
@ -602,7 +602,7 @@ static PRUnichar gHiraganaIrohaChars[HIRAGANA_IROHA_CHARS_SIZE] =
|
|||
};
|
||||
|
||||
#define KATAKANA_IROHA_CHARS_SIZE 47
|
||||
static PRUnichar gKatakanaIrohaChars[KATAKANA_IROHA_CHARS_SIZE] =
|
||||
static const PRUnichar gKatakanaIrohaChars[KATAKANA_IROHA_CHARS_SIZE] =
|
||||
{
|
||||
0x30A4, 0x30ED, 0x30CF, 0x30CB, 0x30DB, // i ro ha ni ho
|
||||
0x30D8, 0x30C8, 0x30C1, 0x30EA, 0x30CC, // he to chi ri nu
|
||||
|
@ -618,7 +618,7 @@ static PRUnichar gKatakanaIrohaChars[KATAKANA_IROHA_CHARS_SIZE] =
|
|||
|
||||
#define LOWER_GREEK_CHARS_SIZE 24
|
||||
// Note: 0x03C2 GREEK FINAL SIGMA is not used in here....
|
||||
static PRUnichar gLowerGreekChars[LOWER_GREEK_CHARS_SIZE] =
|
||||
static const PRUnichar gLowerGreekChars[LOWER_GREEK_CHARS_SIZE] =
|
||||
{
|
||||
0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, // alpha beta gamma delta epsilon
|
||||
0x03B6, 0x03B7, 0x03B8, 0x03B9, 0x03BA, // zeta eta theta iota kappa
|
||||
|
@ -628,26 +628,26 @@ static PRUnichar gLowerGreekChars[LOWER_GREEK_CHARS_SIZE] =
|
|||
};
|
||||
|
||||
#define CJK_HEAVENLY_STEM_CHARS_SIZE 10
|
||||
static PRUnichar gCJKHeavenlyStemChars[CJK_HEAVENLY_STEM_CHARS_SIZE] =
|
||||
static const PRUnichar gCJKHeavenlyStemChars[CJK_HEAVENLY_STEM_CHARS_SIZE] =
|
||||
{
|
||||
0x7532, 0x4e59, 0x4e19, 0x4e01, 0x620a,
|
||||
0x5df1, 0x5e9a, 0x8f9b, 0x58ec, 0x7678
|
||||
};
|
||||
#define CJK_EARTHLY_BRANCH_CHARS_SIZE 12
|
||||
static PRUnichar gCJKEarthlyBranchChars[CJK_EARTHLY_BRANCH_CHARS_SIZE] =
|
||||
static const PRUnichar gCJKEarthlyBranchChars[CJK_EARTHLY_BRANCH_CHARS_SIZE] =
|
||||
{
|
||||
0x5b50, 0x4e11, 0x5bc5, 0x536f, 0x8fb0, 0x5df3,
|
||||
0x5348, 0x672a, 0x7533, 0x9149, 0x620c, 0x4ea5
|
||||
};
|
||||
#define HANGUL_CHARS_SIZE 14
|
||||
static PRUnichar gHangulChars[HANGUL_CHARS_SIZE] =
|
||||
static const PRUnichar gHangulChars[HANGUL_CHARS_SIZE] =
|
||||
{
|
||||
0xac00, 0xb098, 0xb2e4, 0xb77c, 0xb9c8, 0xbc14,
|
||||
0xc0ac, 0xc544, 0xc790, 0xcc28, 0xce74, 0xd0c0,
|
||||
0xd30c, 0xd558
|
||||
};
|
||||
#define HANGUL_CONSONANT_CHARS_SIZE 14
|
||||
static PRUnichar gHangulConsonantChars[HANGUL_CONSONANT_CHARS_SIZE] =
|
||||
static const PRUnichar gHangulConsonantChars[HANGUL_CONSONANT_CHARS_SIZE] =
|
||||
{
|
||||
0x3131, 0x3134, 0x3137, 0x3139, 0x3141, 0x3142,
|
||||
0x3145, 0x3147, 0x3148, 0x314a, 0x314b, 0x314c,
|
||||
|
@ -659,7 +659,7 @@ static PRUnichar gHangulConsonantChars[HANGUL_CONSONANT_CHARS_SIZE] =
|
|||
// per Momoi san's suggestion in bug 102252.
|
||||
// For details, refer to http://www.ethiopic.org/Collation/OrderedLists.html.
|
||||
#define ETHIOPIC_HALEHAME_CHARS_SIZE 26
|
||||
static PRUnichar gEthiopicHalehameChars[ETHIOPIC_HALEHAME_CHARS_SIZE] =
|
||||
static const PRUnichar gEthiopicHalehameChars[ETHIOPIC_HALEHAME_CHARS_SIZE] =
|
||||
{
|
||||
0x1200, 0x1208, 0x1210, 0x1218, 0x1220, 0x1228,
|
||||
0x1230, 0x1240, 0x1260, 0x1270, 0x1280, 0x1290,
|
||||
|
@ -668,7 +668,7 @@ static PRUnichar gEthiopicHalehameChars[ETHIOPIC_HALEHAME_CHARS_SIZE] =
|
|||
0x1348, 0x1350
|
||||
};
|
||||
#define ETHIOPIC_HALEHAME_AM_CHARS_SIZE 33
|
||||
static PRUnichar gEthiopicHalehameAmChars[ETHIOPIC_HALEHAME_AM_CHARS_SIZE] =
|
||||
static const PRUnichar gEthiopicHalehameAmChars[ETHIOPIC_HALEHAME_AM_CHARS_SIZE] =
|
||||
{
|
||||
0x1200, 0x1208, 0x1210, 0x1218, 0x1220, 0x1228,
|
||||
0x1230, 0x1238, 0x1240, 0x1260, 0x1270, 0x1278,
|
||||
|
@ -678,7 +678,7 @@ static PRUnichar gEthiopicHalehameAmChars[ETHIOPIC_HALEHAME_AM_CHARS_SIZE] =
|
|||
0x1340, 0x1348, 0x1350
|
||||
};
|
||||
#define ETHIOPIC_HALEHAME_TI_ER_CHARS_SIZE 31
|
||||
static PRUnichar gEthiopicHalehameTiErChars[ETHIOPIC_HALEHAME_TI_ER_CHARS_SIZE] =
|
||||
static const PRUnichar gEthiopicHalehameTiErChars[ETHIOPIC_HALEHAME_TI_ER_CHARS_SIZE] =
|
||||
{
|
||||
0x1200, 0x1208, 0x1210, 0x1218, 0x1228, 0x1230,
|
||||
0x1238, 0x1240, 0x1250, 0x1260, 0x1270, 0x1278,
|
||||
|
@ -688,7 +688,7 @@ static PRUnichar gEthiopicHalehameTiErChars[ETHIOPIC_HALEHAME_TI_ER_CHARS_SIZE]
|
|||
0x1350
|
||||
};
|
||||
#define ETHIOPIC_HALEHAME_TI_ET_CHARS_SIZE 34
|
||||
static PRUnichar gEthiopicHalehameTiEtChars[ETHIOPIC_HALEHAME_TI_ET_CHARS_SIZE] =
|
||||
static const PRUnichar gEthiopicHalehameTiEtChars[ETHIOPIC_HALEHAME_TI_ET_CHARS_SIZE] =
|
||||
{
|
||||
0x1200, 0x1208, 0x1210, 0x1218, 0x1220, 0x1228,
|
||||
0x1230, 0x1238, 0x1240, 0x1250, 0x1260, 0x1270,
|
||||
|
@ -725,43 +725,43 @@ static PRBool CharListToText(PRInt32 ordinal, nsString& result, const PRUnichar*
|
|||
}
|
||||
|
||||
|
||||
static PRUnichar gCJKIdeographicDigit1[10] =
|
||||
static const PRUnichar gCJKIdeographicDigit1[10] =
|
||||
{
|
||||
0x96f6, 0x4e00, 0x4e8c, 0x4e09, 0x56db, // 0 - 4
|
||||
0x4e94, 0x516d, 0x4e03, 0x516b, 0x4e5d // 5 - 9
|
||||
};
|
||||
static PRUnichar gCJKIdeographicDigit2[10] =
|
||||
static const PRUnichar gCJKIdeographicDigit2[10] =
|
||||
{
|
||||
0x96f6, 0x58f9, 0x8cb3, 0x53c3, 0x8086, // 0 - 4
|
||||
0x4f0d, 0x9678, 0x67d2, 0x634c, 0x7396 // 5 - 9
|
||||
};
|
||||
static PRUnichar gCJKIdeographicDigit3[10] =
|
||||
static const PRUnichar gCJKIdeographicDigit3[10] =
|
||||
{
|
||||
0x96f6, 0x58f9, 0x8d30, 0x53c1, 0x8086, // 0 - 4
|
||||
0x4f0d, 0x9646, 0x67d2, 0x634c, 0x7396 // 5 - 9
|
||||
};
|
||||
static PRUnichar gCJKIdeographicUnit1[4] =
|
||||
static const PRUnichar gCJKIdeographicUnit1[4] =
|
||||
{
|
||||
0x000, 0x5341, 0x767e, 0x5343
|
||||
};
|
||||
static PRUnichar gCJKIdeographicUnit2[4] =
|
||||
static const PRUnichar gCJKIdeographicUnit2[4] =
|
||||
{
|
||||
0x000, 0x62FE, 0x4F70, 0x4EDF
|
||||
};
|
||||
static PRUnichar gCJKIdeographic10KUnit1[4] =
|
||||
static const PRUnichar gCJKIdeographic10KUnit1[4] =
|
||||
{
|
||||
0x000, 0x842c, 0x5104, 0x5146
|
||||
};
|
||||
static PRUnichar gCJKIdeographic10KUnit2[4] =
|
||||
static const PRUnichar gCJKIdeographic10KUnit2[4] =
|
||||
{
|
||||
0x000, 0x4E07, 0x4ebf, 0x5146
|
||||
};
|
||||
static PRUnichar gCJKIdeographic10KUnit3[4] =
|
||||
static const PRUnichar gCJKIdeographic10KUnit3[4] =
|
||||
{
|
||||
0x000, 0x4E07, 0x5104, 0x5146
|
||||
};
|
||||
|
||||
static PRBool CJKIdeographicToText(PRInt32 ordinal, nsString& result,
|
||||
static const PRBool CJKIdeographicToText(PRInt32 ordinal, nsString& result,
|
||||
const PRUnichar* digits,
|
||||
const PRUnichar *unit,
|
||||
const PRUnichar* unit10k)
|
||||
|
@ -829,7 +829,7 @@ static PRBool CJKIdeographicToText(PRInt32 ordinal, nsString& result,
|
|||
#define HEBREW_THROSAND_SEP 0x0020
|
||||
#define HEBREW_GERESH 0x05F3
|
||||
#define HEBREW_GERSHAYIM 0x05F4
|
||||
static PRUnichar gHebrewDigit[22] =
|
||||
static const PRUnichar gHebrewDigit[22] =
|
||||
{
|
||||
// 1 2 3 4 5 6 7 8 9
|
||||
0x05D0, 0x05D1, 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7, 0x05D8,
|
||||
|
@ -1013,7 +1013,7 @@ static PRBool ArmenianToText(PRInt32 ordinal, nsString& result)
|
|||
}
|
||||
|
||||
|
||||
static PRUnichar gGeorgianValue [ 37 ] = { // 4 * 9 + 1 = 37
|
||||
static const PRUnichar gGeorgianValue [ 37 ] = { // 4 * 9 + 1 = 37
|
||||
// 1 2 3 4 5 6 7 8 9
|
||||
0x10A0, 0x10A1, 0x10A2, 0x10A3, 0x10A4, 0x10A5, 0x10A6, 0x10C1, 0x10A7,
|
||||
// 10 20 30 40 50 60 70 80 90
|
||||
|
|
|
@ -479,10 +479,10 @@ static PRBool TamilToText(PRInt32 ordinal, nsString& result)
|
|||
}
|
||||
|
||||
|
||||
static const char* gLowerRomanCharsA = "ixcm";
|
||||
static const char* gUpperRomanCharsA = "IXCM";
|
||||
static const char* gLowerRomanCharsB = "vld?";
|
||||
static const char* gUpperRomanCharsB = "VLD?";
|
||||
static const char gLowerRomanCharsA[] = "ixcm";
|
||||
static const char gUpperRomanCharsA[] = "IXCM";
|
||||
static const char gLowerRomanCharsB[] = "vld?";
|
||||
static const char gUpperRomanCharsB[] = "VLD?";
|
||||
|
||||
static PRBool RomanToText(PRInt32 ordinal, nsString& result, const char* achars, const char* bchars)
|
||||
{
|
||||
|
@ -529,7 +529,7 @@ static PRBool RomanToText(PRInt32 ordinal, nsString& result, const char* achars,
|
|||
}
|
||||
|
||||
#define ALPHA_SIZE 26
|
||||
static PRUnichar gLowerAlphaChars[ALPHA_SIZE] =
|
||||
static const PRUnichar gLowerAlphaChars[ALPHA_SIZE] =
|
||||
{
|
||||
0x0061, 0x0062, 0x0063, 0x0064, 0x0065, // A B C D E
|
||||
0x0066, 0x0067, 0x0068, 0x0069, 0x006A, // F G H I J
|
||||
|
@ -539,7 +539,7 @@ static PRUnichar gLowerAlphaChars[ALPHA_SIZE] =
|
|||
0x007A // Z
|
||||
};
|
||||
|
||||
static PRUnichar gUpperAlphaChars[ALPHA_SIZE] =
|
||||
static const PRUnichar gUpperAlphaChars[ALPHA_SIZE] =
|
||||
{
|
||||
0x0041, 0x0042, 0x0043, 0x0044, 0x0045, // A B C D E
|
||||
0x0046, 0x0047, 0x0048, 0x0049, 0x004A, // F G H I J
|
||||
|
@ -553,7 +553,7 @@ static PRUnichar gUpperAlphaChars[ALPHA_SIZE] =
|
|||
#define KATAKANA_CHARS_SIZE 48
|
||||
// Page 94 Writing Systems of The World
|
||||
// after modification by momoi
|
||||
static PRUnichar gKatakanaChars[KATAKANA_CHARS_SIZE] =
|
||||
static const PRUnichar gKatakanaChars[KATAKANA_CHARS_SIZE] =
|
||||
{
|
||||
0x30A2, 0x30A4, 0x30A6, 0x30A8, 0x30AA, // a i u e o
|
||||
0x30AB, 0x30AD, 0x30AF, 0x30B1, 0x30B3, // ka ki ku ke ko
|
||||
|
@ -569,7 +569,7 @@ static PRUnichar gKatakanaChars[KATAKANA_CHARS_SIZE] =
|
|||
};
|
||||
|
||||
#define HIRAGANA_CHARS_SIZE 48
|
||||
static PRUnichar gHiraganaChars[HIRAGANA_CHARS_SIZE] =
|
||||
static const PRUnichar gHiraganaChars[HIRAGANA_CHARS_SIZE] =
|
||||
{
|
||||
0x3042, 0x3044, 0x3046, 0x3048, 0x304A, // a i u e o
|
||||
0x304B, 0x304D, 0x304F, 0x3051, 0x3053, // ka ki ku ke ko
|
||||
|
@ -587,7 +587,7 @@ static PRUnichar gHiraganaChars[HIRAGANA_CHARS_SIZE] =
|
|||
|
||||
#define HIRAGANA_IROHA_CHARS_SIZE 47
|
||||
// Page 94 Writing Systems of The World
|
||||
static PRUnichar gHiraganaIrohaChars[HIRAGANA_IROHA_CHARS_SIZE] =
|
||||
static const PRUnichar gHiraganaIrohaChars[HIRAGANA_IROHA_CHARS_SIZE] =
|
||||
{
|
||||
0x3044, 0x308D, 0x306F, 0x306B, 0x307B, // i ro ha ni ho
|
||||
0x3078, 0x3068, 0x3061, 0x308A, 0x306C, // he to chi ri nu
|
||||
|
@ -602,7 +602,7 @@ static PRUnichar gHiraganaIrohaChars[HIRAGANA_IROHA_CHARS_SIZE] =
|
|||
};
|
||||
|
||||
#define KATAKANA_IROHA_CHARS_SIZE 47
|
||||
static PRUnichar gKatakanaIrohaChars[KATAKANA_IROHA_CHARS_SIZE] =
|
||||
static const PRUnichar gKatakanaIrohaChars[KATAKANA_IROHA_CHARS_SIZE] =
|
||||
{
|
||||
0x30A4, 0x30ED, 0x30CF, 0x30CB, 0x30DB, // i ro ha ni ho
|
||||
0x30D8, 0x30C8, 0x30C1, 0x30EA, 0x30CC, // he to chi ri nu
|
||||
|
@ -618,7 +618,7 @@ static PRUnichar gKatakanaIrohaChars[KATAKANA_IROHA_CHARS_SIZE] =
|
|||
|
||||
#define LOWER_GREEK_CHARS_SIZE 24
|
||||
// Note: 0x03C2 GREEK FINAL SIGMA is not used in here....
|
||||
static PRUnichar gLowerGreekChars[LOWER_GREEK_CHARS_SIZE] =
|
||||
static const PRUnichar gLowerGreekChars[LOWER_GREEK_CHARS_SIZE] =
|
||||
{
|
||||
0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, // alpha beta gamma delta epsilon
|
||||
0x03B6, 0x03B7, 0x03B8, 0x03B9, 0x03BA, // zeta eta theta iota kappa
|
||||
|
@ -628,26 +628,26 @@ static PRUnichar gLowerGreekChars[LOWER_GREEK_CHARS_SIZE] =
|
|||
};
|
||||
|
||||
#define CJK_HEAVENLY_STEM_CHARS_SIZE 10
|
||||
static PRUnichar gCJKHeavenlyStemChars[CJK_HEAVENLY_STEM_CHARS_SIZE] =
|
||||
static const PRUnichar gCJKHeavenlyStemChars[CJK_HEAVENLY_STEM_CHARS_SIZE] =
|
||||
{
|
||||
0x7532, 0x4e59, 0x4e19, 0x4e01, 0x620a,
|
||||
0x5df1, 0x5e9a, 0x8f9b, 0x58ec, 0x7678
|
||||
};
|
||||
#define CJK_EARTHLY_BRANCH_CHARS_SIZE 12
|
||||
static PRUnichar gCJKEarthlyBranchChars[CJK_EARTHLY_BRANCH_CHARS_SIZE] =
|
||||
static const PRUnichar gCJKEarthlyBranchChars[CJK_EARTHLY_BRANCH_CHARS_SIZE] =
|
||||
{
|
||||
0x5b50, 0x4e11, 0x5bc5, 0x536f, 0x8fb0, 0x5df3,
|
||||
0x5348, 0x672a, 0x7533, 0x9149, 0x620c, 0x4ea5
|
||||
};
|
||||
#define HANGUL_CHARS_SIZE 14
|
||||
static PRUnichar gHangulChars[HANGUL_CHARS_SIZE] =
|
||||
static const PRUnichar gHangulChars[HANGUL_CHARS_SIZE] =
|
||||
{
|
||||
0xac00, 0xb098, 0xb2e4, 0xb77c, 0xb9c8, 0xbc14,
|
||||
0xc0ac, 0xc544, 0xc790, 0xcc28, 0xce74, 0xd0c0,
|
||||
0xd30c, 0xd558
|
||||
};
|
||||
#define HANGUL_CONSONANT_CHARS_SIZE 14
|
||||
static PRUnichar gHangulConsonantChars[HANGUL_CONSONANT_CHARS_SIZE] =
|
||||
static const PRUnichar gHangulConsonantChars[HANGUL_CONSONANT_CHARS_SIZE] =
|
||||
{
|
||||
0x3131, 0x3134, 0x3137, 0x3139, 0x3141, 0x3142,
|
||||
0x3145, 0x3147, 0x3148, 0x314a, 0x314b, 0x314c,
|
||||
|
@ -659,7 +659,7 @@ static PRUnichar gHangulConsonantChars[HANGUL_CONSONANT_CHARS_SIZE] =
|
|||
// per Momoi san's suggestion in bug 102252.
|
||||
// For details, refer to http://www.ethiopic.org/Collation/OrderedLists.html.
|
||||
#define ETHIOPIC_HALEHAME_CHARS_SIZE 26
|
||||
static PRUnichar gEthiopicHalehameChars[ETHIOPIC_HALEHAME_CHARS_SIZE] =
|
||||
static const PRUnichar gEthiopicHalehameChars[ETHIOPIC_HALEHAME_CHARS_SIZE] =
|
||||
{
|
||||
0x1200, 0x1208, 0x1210, 0x1218, 0x1220, 0x1228,
|
||||
0x1230, 0x1240, 0x1260, 0x1270, 0x1280, 0x1290,
|
||||
|
@ -668,7 +668,7 @@ static PRUnichar gEthiopicHalehameChars[ETHIOPIC_HALEHAME_CHARS_SIZE] =
|
|||
0x1348, 0x1350
|
||||
};
|
||||
#define ETHIOPIC_HALEHAME_AM_CHARS_SIZE 33
|
||||
static PRUnichar gEthiopicHalehameAmChars[ETHIOPIC_HALEHAME_AM_CHARS_SIZE] =
|
||||
static const PRUnichar gEthiopicHalehameAmChars[ETHIOPIC_HALEHAME_AM_CHARS_SIZE] =
|
||||
{
|
||||
0x1200, 0x1208, 0x1210, 0x1218, 0x1220, 0x1228,
|
||||
0x1230, 0x1238, 0x1240, 0x1260, 0x1270, 0x1278,
|
||||
|
@ -678,7 +678,7 @@ static PRUnichar gEthiopicHalehameAmChars[ETHIOPIC_HALEHAME_AM_CHARS_SIZE] =
|
|||
0x1340, 0x1348, 0x1350
|
||||
};
|
||||
#define ETHIOPIC_HALEHAME_TI_ER_CHARS_SIZE 31
|
||||
static PRUnichar gEthiopicHalehameTiErChars[ETHIOPIC_HALEHAME_TI_ER_CHARS_SIZE] =
|
||||
static const PRUnichar gEthiopicHalehameTiErChars[ETHIOPIC_HALEHAME_TI_ER_CHARS_SIZE] =
|
||||
{
|
||||
0x1200, 0x1208, 0x1210, 0x1218, 0x1228, 0x1230,
|
||||
0x1238, 0x1240, 0x1250, 0x1260, 0x1270, 0x1278,
|
||||
|
@ -688,7 +688,7 @@ static PRUnichar gEthiopicHalehameTiErChars[ETHIOPIC_HALEHAME_TI_ER_CHARS_SIZE]
|
|||
0x1350
|
||||
};
|
||||
#define ETHIOPIC_HALEHAME_TI_ET_CHARS_SIZE 34
|
||||
static PRUnichar gEthiopicHalehameTiEtChars[ETHIOPIC_HALEHAME_TI_ET_CHARS_SIZE] =
|
||||
static const PRUnichar gEthiopicHalehameTiEtChars[ETHIOPIC_HALEHAME_TI_ET_CHARS_SIZE] =
|
||||
{
|
||||
0x1200, 0x1208, 0x1210, 0x1218, 0x1220, 0x1228,
|
||||
0x1230, 0x1238, 0x1240, 0x1250, 0x1260, 0x1270,
|
||||
|
@ -725,43 +725,43 @@ static PRBool CharListToText(PRInt32 ordinal, nsString& result, const PRUnichar*
|
|||
}
|
||||
|
||||
|
||||
static PRUnichar gCJKIdeographicDigit1[10] =
|
||||
static const PRUnichar gCJKIdeographicDigit1[10] =
|
||||
{
|
||||
0x96f6, 0x4e00, 0x4e8c, 0x4e09, 0x56db, // 0 - 4
|
||||
0x4e94, 0x516d, 0x4e03, 0x516b, 0x4e5d // 5 - 9
|
||||
};
|
||||
static PRUnichar gCJKIdeographicDigit2[10] =
|
||||
static const PRUnichar gCJKIdeographicDigit2[10] =
|
||||
{
|
||||
0x96f6, 0x58f9, 0x8cb3, 0x53c3, 0x8086, // 0 - 4
|
||||
0x4f0d, 0x9678, 0x67d2, 0x634c, 0x7396 // 5 - 9
|
||||
};
|
||||
static PRUnichar gCJKIdeographicDigit3[10] =
|
||||
static const PRUnichar gCJKIdeographicDigit3[10] =
|
||||
{
|
||||
0x96f6, 0x58f9, 0x8d30, 0x53c1, 0x8086, // 0 - 4
|
||||
0x4f0d, 0x9646, 0x67d2, 0x634c, 0x7396 // 5 - 9
|
||||
};
|
||||
static PRUnichar gCJKIdeographicUnit1[4] =
|
||||
static const PRUnichar gCJKIdeographicUnit1[4] =
|
||||
{
|
||||
0x000, 0x5341, 0x767e, 0x5343
|
||||
};
|
||||
static PRUnichar gCJKIdeographicUnit2[4] =
|
||||
static const PRUnichar gCJKIdeographicUnit2[4] =
|
||||
{
|
||||
0x000, 0x62FE, 0x4F70, 0x4EDF
|
||||
};
|
||||
static PRUnichar gCJKIdeographic10KUnit1[4] =
|
||||
static const PRUnichar gCJKIdeographic10KUnit1[4] =
|
||||
{
|
||||
0x000, 0x842c, 0x5104, 0x5146
|
||||
};
|
||||
static PRUnichar gCJKIdeographic10KUnit2[4] =
|
||||
static const PRUnichar gCJKIdeographic10KUnit2[4] =
|
||||
{
|
||||
0x000, 0x4E07, 0x4ebf, 0x5146
|
||||
};
|
||||
static PRUnichar gCJKIdeographic10KUnit3[4] =
|
||||
static const PRUnichar gCJKIdeographic10KUnit3[4] =
|
||||
{
|
||||
0x000, 0x4E07, 0x5104, 0x5146
|
||||
};
|
||||
|
||||
static PRBool CJKIdeographicToText(PRInt32 ordinal, nsString& result,
|
||||
static const PRBool CJKIdeographicToText(PRInt32 ordinal, nsString& result,
|
||||
const PRUnichar* digits,
|
||||
const PRUnichar *unit,
|
||||
const PRUnichar* unit10k)
|
||||
|
@ -829,7 +829,7 @@ static PRBool CJKIdeographicToText(PRInt32 ordinal, nsString& result,
|
|||
#define HEBREW_THROSAND_SEP 0x0020
|
||||
#define HEBREW_GERESH 0x05F3
|
||||
#define HEBREW_GERSHAYIM 0x05F4
|
||||
static PRUnichar gHebrewDigit[22] =
|
||||
static const PRUnichar gHebrewDigit[22] =
|
||||
{
|
||||
// 1 2 3 4 5 6 7 8 9
|
||||
0x05D0, 0x05D1, 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7, 0x05D8,
|
||||
|
@ -1013,7 +1013,7 @@ static PRBool ArmenianToText(PRInt32 ordinal, nsString& result)
|
|||
}
|
||||
|
||||
|
||||
static PRUnichar gGeorgianValue [ 37 ] = { // 4 * 9 + 1 = 37
|
||||
static const PRUnichar gGeorgianValue [ 37 ] = { // 4 * 9 + 1 = 37
|
||||
// 1 2 3 4 5 6 7 8 9
|
||||
0x10A0, 0x10A1, 0x10A2, 0x10A3, 0x10A4, 0x10A5, 0x10A6, 0x10C1, 0x10A7,
|
||||
// 10 20 30 40 50 60 70 80 90
|
||||
|
|
|
@ -263,7 +263,7 @@ ShowVerifyReflowFlags()
|
|||
#ifdef MOZ_REFLOW_PERF
|
||||
class ReflowCountMgr;
|
||||
|
||||
static const char * kGrandTotalsStr = "Grand Totals";
|
||||
static const char kGrandTotalsStr[] = "Grand Totals";
|
||||
#define NUM_REFLOW_TYPES 5
|
||||
|
||||
// Counting Class
|
||||
|
|
|
@ -349,8 +349,8 @@ nsGlyphTable::GetAnnotation(nsMathMLChar* aChar, PRInt32 aPosition)
|
|||
NS_ASSERTION(aChar->mDirection == NS_STRETCH_DIRECTION_VERTICAL ||
|
||||
aChar->mDirection == NS_STRETCH_DIRECTION_HORIZONTAL,
|
||||
"invalid call");
|
||||
static const char* kVertical = "TMBG";
|
||||
static const char* kHorizontal = "LMRG";
|
||||
static const char kVertical[] = "TMBG";
|
||||
static const char kHorizontal[] = "LMRG";
|
||||
if (aPosition >= 4) {
|
||||
// return an ASCII digit for the size=0,1,2,...
|
||||
return '0' + aPosition - 4;
|
||||
|
|
Загрузка…
Ссылка в новой задаче