mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-5787 Minor code cleanup
X-SVN-Rev: 22287
This commit is contained in:
parent
fc28f366f6
commit
ae617cbd3b
1 changed files with 2 additions and 2 deletions
|
@ -361,7 +361,7 @@ DateTimePatternGenerator::addCLDRData(const Locale& locale) {
|
|||
appendItemNames[i]+=(i+0x30);
|
||||
}
|
||||
else {
|
||||
appendItemNames[i]+=0x31;
|
||||
appendItemNames[i]+=(UChar)0x31;
|
||||
appendItemNames[i]+=(i-10 + 0x30);
|
||||
}
|
||||
// NUL-terminate for the C API.
|
||||
|
@ -1488,7 +1488,7 @@ FormatParser::set(const UnicodeString& pattern) {
|
|||
} while (result==ADD_TOKEN && itemNumber < MAX_DT_TOKEN);
|
||||
}
|
||||
|
||||
int
|
||||
int32_t
|
||||
FormatParser::getCanonicalIndex(const UnicodeString& s) {
|
||||
int32_t len = s.length();
|
||||
UChar ch = s.charAt(0);
|
||||
|
|
Loading…
Add table
Reference in a new issue