Mercurial > libguess
comparison turkish_impl.c @ 2:754a4550c64e
- added arabic, greek, hebrew and turkish DFAs
- new UCS-2LE/BE DFAs
- now arabic_impl.c uses arabic DFAs
- dfa common macros have been moved to dfa.h
- minor cleanups
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Wed, 11 Jun 2008 00:11:30 +0900 |
parents | d9b6ff839eab |
children | 70e2c306231e |
comparison
equal
deleted
inserted
replaced
1:04f2be1c8464 | 2:754a4550c64e |
---|---|
4 { | 4 { |
5 int i; | 5 int i; |
6 | 6 |
7 for (i = 0; i < size; i++) | 7 for (i = 0; i < size; i++) |
8 { | 8 { |
9 if (ptr[i] == 0x80 || | 9 if (ptr[i] == 0x80 || |
10 (ptr[i] >= 0x82 && ptr[i] <= 0x8C) || | 10 (ptr[i] >= 0x82 && ptr[i] <= 0x8C) || |
11 (ptr[i] >= 0x91 && ptr[i] <= 0x9C) || | 11 (ptr[i] >= 0x91 && ptr[i] <= 0x9C) || |
12 ptr[ i ] == 0x9F) | 12 ptr[ i ] == 0x9F) |
13 return "CP1254"; | 13 return "CP1254"; |
14 } | 14 } |
15 | 15 |
16 return "ISO-8859-9"; | 16 return "ISO-8859-9"; |