Refactoring!

This commit is contained in:
Ianos Gnatiuc
2006-05-13 16:15:35 +00:00
parent 48908d77d9
commit 40cd10db65
89 changed files with 7944 additions and 28800 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -93,7 +93,7 @@ struct lang_map {
struct cs_info * get_current_cs(const char * es);
struct unicode_info * get_utf_cs();
struct unicode_info * get_utf_cs(bool what = true);
int get_utf_cs_len();

View File

@@ -1,6 +1,10 @@
#include "csutil.hxx"
/* fields: Unicode letter, toupper, tolower */
struct unicode_info utf_lst[] = {
struct unicode_info * get_utf_cs(bool what)
{
static struct unicode_info utf_lst[] =
{
{ 0x0041, 0x0041, 0x0061 },
{ 0x0042, 0x0042, 0x0062 },
{ 0x0043, 0x0043, 0x0063 },
@@ -8504,3 +8508,6 @@ struct unicode_info utf_lst[] = {
{ 0xFFDB, 0xFFDB, 0xFFDB },
{ 0xFFDC, 0xFFDC, 0xFFDC }
};
return what ? utf_lst : (unicode_info*)(sizeof(utf_lst) / sizeof(unicode_info));
}