mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
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:
parent
c074c76211
commit
c2617dc4ed
3 changed files with 326 additions and 319 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue