Changes in common/str.c [45adeeb:b31323f] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/str.c

    r45adeeb rb31323f  
    427427        char32_t ch = _str_decode(str, offset, size, &mb);
    428428
    429         if (ch == CHAR_INVALID || mb.state)
     429        if (ch == CHAR_INVALID)
    430430                return U_SPECIAL;
    431431
     432        if (mb.state)
     433                return U_SPECIAL;
     434
    432435        return ch;
    433 }
    434 
    435 char32_t str_decode_r(const char *str, size_t *offset, size_t size,
    436         char32_t replacement, mbstate_t *mb)
    437 {
    438         char32_t ch = _str_decode(str, offset, size, mb);
    439         return (ch == CHAR_INVALID) ? replacement : ch;
    440436}
    441437
Note: See TracChangeset for help on using the changeset viewer.