… | |
… | |
789 | // compose chars are used to represent composite characters |
789 | // compose chars are used to represent composite characters |
790 | // that are not representable in unicode, as well as characters |
790 | // that are not representable in unicode, as well as characters |
791 | // not fitting in the BMP. |
791 | // not fitting in the BMP. |
792 | struct compose_char |
792 | struct compose_char |
793 | { |
793 | { |
794 | unicode_t c1, c2; // any chars != NOCHAR are valid |
794 | // c1 can be any chaarcter != NOCHAR, including another compose character |
|
|
795 | // c2 must always be a zero-width character or NOCHAR, in case |
|
|
796 | // this just extends beyondthe BMP. |
|
|
797 | unicode_t c1, c2; |
795 | |
798 | |
796 | compose_char (unicode_t c1, unicode_t c2) |
799 | compose_char (unicode_t c1, unicode_t c2) |
797 | : c1(c1), c2(c2) |
800 | : c1(c1), c2(c2) |
798 | { } |
801 | { } |
799 | }; |
802 | }; |