Quickbook: Fix handling UTF-8 characters in the syntax highlighter.
authordanieljames <danieljames@b8fc166d-592f-0410-95f2-cb63ce0dd405>
Mon, 30 Jan 2012 00:06:36 +0000 (00:06 +0000)
committerdanieljames <danieljames@b8fc166d-592f-0410-95f2-cb63ce0dd405>
Mon, 30 Jan 2012 00:06:36 +0000 (00:06 +0000)
commitdb3bd1f7833468c1383bd565d71c37a90f09823e
treef156009168fd2c9d5b0b0b92414abad0778b0c64
parent898303f299f59bc3338971acd7e69c7d8586c623
Quickbook: Fix handling UTF-8 characters in the syntax highlighter.

So far, quickbook has just pretended that it's dealing with a single
byte encoding.  For the most part this works quite well due to the
design of UTF-8, but the syntax highlighter needs to pick out individual
characters correctly, so implement just enough to do that. Does odd
things with invalid UTF-8.

git-svn-id: http://svn.boost.org/svn/boost/branches/quickbook-dev@76790 b8fc166d-592f-0410-95f2-cb63ce0dd405
tools/quickbook/src/parsers.hpp
tools/quickbook/src/syntax_highlight.cpp