Angus Leeming wrote:
Abdelrazak Younes writes:
Georg Baum wrote:
Abdelrazak Younes wrote:
Then we need docstring as we don't know which kind of extension a user
could create.

Please: format name != file extension!!! I fixed several bugs
resulting from this misunderstanding.
format names are unique, file extensions not.

Sure... I meant format really.

Note that keeping std::string for the format name will enable you to enforce the distinction at compile time. Even clearer if you follow Georg's suggestion of
    typedef std::string lyx::asciistring;

Why not... I would even go further:

     typedef std::string lyx::keystring;

That way we know that these string are not really meant for displays but should be used for string based keys (menus, dialog ids, format, etc).

I don't like much asciistring because docstring can be ascii also.

Abdel.

Reply via email to