mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-2135 Make more data const.
X-SVN-Rev: 10712
This commit is contained in:
parent
f2d18275b4
commit
efb3f15da0
3 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue