Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| Here is a different (related) question. In the insetquote code there
| is this
|   if (disp == "<<")
| code. How should I change it if disp is a docstring so that it still
| fits on one line. How do I change a C string to something that
| compares to a docstring?

The easies is perhap to create a ascii_guill:

docstirng ascii_guill;
ascii_guill += char_type('<') 
ascii_guill += char_type('<') 

And use that for comparing

 if (disp == ascii_guill)
        ...

Or we can create a operator==(docstring const &, char *)

We have some options, but I and sure on the best way.

-- 
        Lgb

Reply via email to