mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-157 genccode needs to write _'s instead of -'s for symbol names (ex: ibm-913.cnv -> ibm_913_cnv)
X-SVN-Rev: 265
This commit is contained in:
parent
e15ae8bc32
commit
93955bf624
1 changed files with 9 additions and 0 deletions
|
@ -78,6 +78,15 @@ writeCCode(const char *filename) {
|
|||
}
|
||||
|
||||
T_FileStream_writeLine(out, "#include \"utypes.h\"\nU_CAPI const uint8_t U_EXPORT2 ");
|
||||
|
||||
for(i=0;i<strlen(entry);i++)
|
||||
{
|
||||
if(entry[i]=='-')
|
||||
{
|
||||
entry[i]='_';
|
||||
}
|
||||
}
|
||||
|
||||
T_FileStream_writeLine(out, entry);
|
||||
T_FileStream_writeLine(out, "[]={\n");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue