| 647 | |
| 648 | |
| 649 | bool IntlUtil::readOneChar(Jrd::CharSet* cs, const UCHAR** s, const UCHAR* end, ULONG* size) |
| 650 | { |
| 651 | (*s) += *size; |
| 652 | |
| 653 | if (*s >= end) |
| 654 | { |
| 655 | (*s) = end; |
| 656 | *size = 0; |
| 657 | return false; |
| 658 | } |
| 659 | |
| 660 | UCHAR c[sizeof(ULONG)]; |
| 661 | *size = cs->substring(end - *s, *s, sizeof(c), c, 0, 1); |
| 662 | |
| 663 | return true; |
| 664 | } |
| 665 | |
| 666 | |
| 667 | // Add COLL-VERSION attribute. |