Re[6]: [libxml++] patch to allow building without glibmm



On Fri, 28 Oct 2005 16:16:08 +0200 (CEST) Murray Cumming <murrayc murrayc com> wrote:

MC> It matters in the application if the document contains UTF-8 and you try
MC> to do the_string.substr(2) or the_string[3] or convert to upper or lower
MC> case in your document, or sort the strings.

 Of course, I realize this. But libxml++ doesn't do anything of this
(again, as far as I could see) in its code, so why does it matter to it?
Any application which needs to do any of the tasks above will need
Glib::ustring or something else (no, Glib is not the only possibility
here). But there is no intrinsic dependency of libxml++ on ustring AFAICS,
i.e. libxml++ just needs a buffer of chars and nothing more.

MC> I don't believe that anybody can guarantee that their system will never
MC> need to support UTF-8.

 This is a separate question and I don't want to argue about it. What I do
want to argue about is that any application which needs to support UTF-8
could still do it perfectly well even if libxml++ used std::string.

 Regards,
VZ





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]