ICU-2135 Make more data const.

X-SVN-Rev: 10712
This commit is contained in:
George Rhoten 2002-12-18 01:23:47 +00:00
parent f2d18275b4
commit efb3f15da0
3 changed files with 3 additions and 3 deletions

View file

@ -171,7 +171,7 @@ static const struct RegexTableEl gRuleParseStateTable[] = {
, {doLiteralChar, 255, 12,0, TRUE} // 78
, {doExit, 255, 79,0, TRUE} // 79 errorDeath
};
static const char *RegexStateNames[] = { 0,
static const char * const RegexStateNames[] = { 0,
"start",
"term",
0,

View file

@ -309,7 +309,7 @@ print " };\n";
#
# This array is used for producing debugging output from the pattern parser.
#
print "static const char *RegexStateNames[] = {";
print "static const char * const RegexStateNames[] = {";
for ($state=0; $state<$num_states; $state++) {
if ($stateNames[$state] ne "") {
print " \"$stateNames[$state]\",\n";

View file

@ -422,7 +422,7 @@ int32_t RegexPattern::split(const UnicodeString &input,
// Debugging function only.
//
//---------------------------------------------------------------------
static const char *opNames[] = {URX_OPCODE_NAMES};
static const char * const opNames[] = {URX_OPCODE_NAMES};
void RegexPattern::dumpOp(int32_t index) const {
int32_t op = fCompiledPat->elementAti(index);