[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Looking through multibyte_char_to_unibyte
From: |
Dmitry Antipov |
Subject: |
Looking through multibyte_char_to_unibyte |
Date: |
Sun, 22 Jun 2014 21:09:19 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
Looking through preprocessed src/character.c, I found the following function:
int
multibyte_char_to_unibyte (int c)
{
if (c < 0x80)
return c;
if (((c) > 0x3FFF7F))
return (((c) > 0x3FFF7F) ? (c) - 0x3FFF00 : multibyte_char_to_unibyte (c));
return (c & 0xFF);
}
Is this a subtle trick which I just can't understand and explain, or something
is really wrong with this?
Dmitry