… | |
… | |
804 | class rxvt_composite_vec |
804 | class rxvt_composite_vec |
805 | { |
805 | { |
806 | vector<compose_char> v; |
806 | vector<compose_char> v; |
807 | public: |
807 | public: |
808 | text_t compose (unicode_t c1, unicode_t c2 = NOCHAR); |
808 | text_t compose (unicode_t c1, unicode_t c2 = NOCHAR); |
809 | int expand (unicode_t c, wchar_t *r); |
809 | template<typename T> int expand (unicode_t c, T *r); |
|
|
810 | int expand (unicode_t c) { return expand (c, (text_t *)0); } |
810 | compose_char *operator [](text_t c) |
811 | compose_char *operator [](text_t c) |
811 | { |
812 | { |
812 | return c >= COMPOSE_LO && c < COMPOSE_LO + v.size () |
813 | return c >= COMPOSE_LO && c < COMPOSE_LO + v.size () |
813 | ? &v[c - COMPOSE_LO] |
814 | ? &v[c - COMPOSE_LO] |
814 | : 0; |
815 | : 0; |