mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-2150 fix string length parameter for U16_GET
X-SVN-Rev: 9931
This commit is contained in:
parent
6b1fa6036a
commit
68ae250e76
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ operator>>(STD_ISTREAM& stream, UnicodeString& str)
|
|||
}
|
||||
/* Was the character consumed? */
|
||||
if (us != uBuffer) {
|
||||
UTF_GET_CHAR_SAFE(uBuffer, 0, 0, sizeof(uBuffer)/sizeof(uBuffer[0]), ch32, FALSE);
|
||||
U16_GET(uBuffer, 0, 0, us-uBuffer, ch32);
|
||||
if (u_isWhitespace(ch32)) {
|
||||
if (!intialWhitespace) {
|
||||
buffer[idx++] = ch;
|
||||
|
|
Loading…
Add table
Reference in a new issue