ICU-5426 Declare some data const.
X-SVN-Rev: 20424
This commit is contained in:
parent
ad9f26b669
commit
e5ba281869
@ -1,6 +1,6 @@
|
||||
/********************************************************************
|
||||
* COPYRIGHT:
|
||||
* Copyright (c) 1997-2004, International Business Machines Corporation and
|
||||
* Copyright (c) 1997-2006, International Business Machines Corporation and
|
||||
* others. All Rights Reserved.
|
||||
********************************************************************/
|
||||
/* file name: cbididat.c
|
||||
@ -17,7 +17,7 @@
|
||||
#include "unicode/ubidi.h"
|
||||
#include "cbiditst.h"
|
||||
|
||||
const char *
|
||||
const char * const
|
||||
dirPropNames[dirPropCount]={
|
||||
"L", "R", "EN", "ES", "ET", "AN", "CS", "B", "S", "WS", "ON",
|
||||
"LRE", "LRO", "AL", "RLE", "RLO", "PDF", "NSM", "BN"
|
||||
@ -358,7 +358,7 @@ testVisualMapXX[]={
|
||||
0
|
||||
};
|
||||
|
||||
BiDiTestData
|
||||
const BiDiTestData
|
||||
tests[]={
|
||||
{testText1, ARRAY_LENGTH(testText1), UBIDI_DEFAULT_LTR, -1, -1,
|
||||
UBIDI_LTR, 0,
|
||||
@ -430,5 +430,5 @@ tests[]={
|
||||
UBIDI_MIXED, 1, testLevelsXX, testVisualMapXX}
|
||||
};
|
||||
|
||||
int
|
||||
const int
|
||||
bidiTestCount=ARRAY_LENGTH(tests);
|
||||
|
@ -38,7 +38,7 @@ static void
|
||||
doTests(UBiDi *pBiDi, UBiDi *pLine, UBool countRunsFirst);
|
||||
|
||||
static void
|
||||
doTest(UBiDi *pBiDi, int testNumber, BiDiTestData *test, int32_t lineStart, UBool countRunsFirst);
|
||||
doTest(UBiDi *pBiDi, int testNumber, const BiDiTestData *test, int32_t lineStart, UBool countRunsFirst);
|
||||
|
||||
static void
|
||||
testReordering(UBiDi *pBiDi, int testNumber);
|
||||
@ -625,7 +625,7 @@ static void TestReorder(){
|
||||
}
|
||||
|
||||
static void
|
||||
doTest(UBiDi *pBiDi, int testNumber, BiDiTestData *test, int32_t lineStart, UBool countRunsFirst) {
|
||||
doTest(UBiDi *pBiDi, int testNumber, const BiDiTestData *test, int32_t lineStart, UBool countRunsFirst) {
|
||||
const uint8_t *dirProps=test->text+lineStart;
|
||||
const UBiDiLevel *levels=test->levels;
|
||||
const uint8_t *visualMap=test->visualMap;
|
||||
|
@ -1,6 +1,6 @@
|
||||
/********************************************************************
|
||||
* COPYRIGHT:
|
||||
* Copyright (c) 1997-2004, International Business Machines Corporation and
|
||||
* Copyright (c) 1997-2006, International Business Machines Corporation and
|
||||
* others. All Rights Reserved.
|
||||
********************************************************************/
|
||||
/* file name: cbiditst.h
|
||||
@ -55,7 +55,7 @@ enum {
|
||||
dirPropCount
|
||||
};
|
||||
|
||||
extern const char *
|
||||
extern const char * const
|
||||
dirPropNames[dirPropCount];
|
||||
|
||||
extern UChar
|
||||
@ -72,10 +72,10 @@ typedef struct {
|
||||
const uint8_t *visualMap;
|
||||
} BiDiTestData;
|
||||
|
||||
extern BiDiTestData
|
||||
extern const BiDiTestData
|
||||
tests[];
|
||||
|
||||
extern int
|
||||
extern const int
|
||||
bidiTestCount;
|
||||
|
||||
#ifdef XP_CPLUSPLUS
|
||||
|
Loading…
Reference in New Issue
Block a user