Diacritic display enhancements

- Use the fact that unicode code currently does not support chars above 0xffff
  (see utf8decode()), and change diacritic database's char code type to
  unsigned short from int. Also comment out database entries above unsupported
  range.

- Use const when possible.

- Iterate over buffer using the buffer's pointer, thus avoiding usage of some
  variables, and avoiding multiple access to the same array item.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23776 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomer Shalev 2009-11-28 17:07:57 +00:00
parent c074c76211
commit c2617dc4ed
3 changed files with 326 additions and 319 deletions

View file

@ -22,5 +22,5 @@
#define _DIACRITIC_H_
#include "system.h"
int is_diacritic(unsigned short char_code, bool *is_rtl);
int is_diacritic(const unsigned short char_code, bool *is_rtl);
#endif