mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Make it clear that we are doing a standard binary search and allow for changes
to character composition/decomposition in future.
This commit is contained in:
parent
c31c6a87b8
commit
f718aa30c9
3 changed files with 6 additions and 4 deletions
|
@ -612,7 +612,7 @@ GSPrivateUniCop(unichar u)
|
|||
unichar code;
|
||||
unichar count = 0;
|
||||
unichar first = 0;
|
||||
unichar last = uni_cop_table_size;
|
||||
unichar last = uni_cop_table_size - 1;
|
||||
|
||||
while (first <= last)
|
||||
{
|
||||
|
@ -681,7 +681,7 @@ uni_is_decomp(unichar u)
|
|||
unichar code;
|
||||
unichar count = 0;
|
||||
unichar first = 0;
|
||||
unichar last = uni_dec_table_size;
|
||||
unichar last = uni_dec_table_size - 1;
|
||||
|
||||
while (first <= last)
|
||||
{
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
struct _cop_ {unichar code; unsigned char cop;};
|
||||
|
||||
static const unsigned int uni_cop_table_size = 355;
|
||||
static struct _cop_ uni_cop_table[]=
|
||||
{
|
||||
{0x0300,230},
|
||||
|
@ -370,3 +369,5 @@ static struct _cop_ uni_cop_table[]=
|
|||
{0xFE22,230},
|
||||
{0xFE23,230},
|
||||
};
|
||||
static const unsigned int
|
||||
uni_cop_table_size = sizeof(uni_cop_table) / sizeof(struct _cop_);
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
struct _dec_ {unichar code; unichar decomp[5];};
|
||||
|
||||
static const unsigned int uni_dec_table_size = 1052;
|
||||
static struct _dec_ uni_dec_table[]=
|
||||
{
|
||||
{0x00C0, {0x0041, 0x0300, 0}},
|
||||
|
@ -1066,3 +1065,5 @@ static struct _dec_ uni_dec_table[]=
|
|||
{0xFB4D, {0x05DB, 0x05BF, 0}},
|
||||
{0xFB4E, {0x05E4, 0x05BF, 0}}
|
||||
};
|
||||
static const unsigned int
|
||||
uni_dec_table_size = sizeof(uni_dec_table) / sizeof(struct _dec_);
|
||||
|
|
Loading…
Reference in a new issue