diff options
author | Tomer Shalev <shalev.tomer@gmail.com> | 2009-11-28 17:07:57 +0000 |
---|---|---|
committer | Tomer Shalev <shalev.tomer@gmail.com> | 2009-11-28 17:07:57 +0000 |
commit | c2617dc4ed76eceaefd4ca39c0159498eb5e9762 (patch) | |
tree | 72ba77525fae0b356e6976175ddfe114d5a12c02 /firmware/include | |
parent | c074c76211621ab15518649a4a835aeb5798bf29 (diff) |
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
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/diacritic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/include/diacritic.h b/firmware/include/diacritic.h index ebcb3bb79a..5bc275ab9b 100644 --- a/firmware/include/diacritic.h +++ b/firmware/include/diacritic.h @@ -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 |