]> git.donarmstrong.com Git - lilypond.git/commit
Remove mbrtowc(), and use utf8_char_len() instead.
authorPatrick McCarty <pnorcks@gmail.com>
Wed, 11 Nov 2009 05:22:25 +0000 (21:22 -0800)
committerPatrick McCarty <pnorcks@gmail.com>
Fri, 13 Nov 2009 00:37:48 +0000 (16:37 -0800)
commit2a5c70110bba2014507091c353c3e80d5dc5f796
tree4d9ed88bc0f90d3f73b257375addbd251531c5b2
parentf781f3307435c46ed3ff21708f75261dc30d2e37
Remove mbrtowc(), and use utf8_char_len() instead.

- In get_counts(), revert the line_char variable to its original
  behavior: keeping track of the character count, not the byte offset.

- Introduce a new parameter to get_counts() to keep track of the byte
  offset.

- Use the byte offset data in Source_file::quote_input() to make sure
  the source line is split at the correct place.
lily/include/input.hh
lily/include/source-file.hh
lily/input-scheme.cc
lily/input.cc
lily/source-file.cc