<[EMAIL PROTECTED]> writes:

| [EMAIL PROTECTED] writes:
| 
| | How do you do it with lyxstring?
| |      If you have done it by changing lyxstring... wrong move... but I
| guess
| |      this is an interimg solution anyway, until we begin to use
| |      wstring/wchar_t in LyX.
| |
| 
| 
| I have defined in support/lyxstring.C,
|  
| "lyxstring & lyxstring::operator +=(wchar_t wc)".

Ok, this is not really good. lyxstring is supposed to be a std::string
compatible string.

This should not be an operator but a function that takes a string and
a wchar_t and concat them.

void concat(string & s, wchar_t wc)
{
        ...
}

| |     What do you store in the lyxstring? When do you need the conversion?
| 
| For example, in "LyXTeXt::draw(...)" in text.C, "textstring +=c;" is
| understood "lyxstring +=(wchar_t)" in CJK-LyX.

Hmm... so the textstring should really be a wstring.

        Lgb

Reply via email to