1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Compile with glib1 again (part of patch from peder). g_unichar_*-ifying (making more things unicode aware) will probably have to wait till .11

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4063 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Wouter Coekaerts 2005-11-02 21:05:24 +00:00 committed by coekie
parent 0e7af32922
commit a0a30db489

View File

@ -640,16 +640,16 @@ void gui_entry_transpose_words(GUI_ENTRY_REC *entry)
void gui_entry_capitalize_word(GUI_ENTRY_REC *entry) void gui_entry_capitalize_word(GUI_ENTRY_REC *entry)
{ {
int pos = entry->pos; int pos = entry->pos;
while (pos < entry->text_len && !g_unichar_isalnum(entry->text[pos])) while (pos < entry->text_len && !i_isalnum(entry->text[pos]))
pos++; pos++;
if (pos < entry->text_len) { if (pos < entry->text_len) {
entry->text[pos] = g_unichar_toupper(entry->text[pos]); entry->text[pos] = i_toupper(entry->text[pos]);
pos++; pos++;
} }
while (pos < entry->text_len && g_unichar_isalnum(entry->text[pos])) { while (pos < entry->text_len && i_isalnum(entry->text[pos])) {
entry->text[pos] = g_unichar_tolower(entry->text[pos]); entry->text[pos] = i_tolower(entry->text[pos]);
pos++; pos++;
} }
@ -662,11 +662,11 @@ void gui_entry_capitalize_word(GUI_ENTRY_REC *entry)
void gui_entry_downcase_word(GUI_ENTRY_REC *entry) void gui_entry_downcase_word(GUI_ENTRY_REC *entry)
{ {
int pos = entry->pos; int pos = entry->pos;
while (pos < entry->text_len && !g_unichar_isalnum(entry->text[pos])) while (pos < entry->text_len && !i_isalnum(entry->text[pos]))
pos++; pos++;
while (pos < entry->text_len && g_unichar_isalnum(entry->text[pos])) { while (pos < entry->text_len && i_isalnum(entry->text[pos])) {
entry->text[pos] = g_unichar_tolower(entry->text[pos]); entry->text[pos] = i_tolower(entry->text[pos]);
pos++; pos++;
} }
@ -679,11 +679,11 @@ void gui_entry_downcase_word(GUI_ENTRY_REC *entry)
void gui_entry_upcase_word(GUI_ENTRY_REC *entry) void gui_entry_upcase_word(GUI_ENTRY_REC *entry)
{ {
int pos = entry->pos; int pos = entry->pos;
while (pos < entry->text_len && !g_unichar_isalnum(entry->text[pos])) while (pos < entry->text_len && !i_isalnum(entry->text[pos]))
pos++; pos++;
while (pos < entry->text_len && g_unichar_isalnum(entry->text[pos])) { while (pos < entry->text_len && i_isalnum(entry->text[pos])) {
entry->text[pos] = g_unichar_toupper(entry->text[pos]); entry->text[pos] = i_toupper(entry->text[pos]);
pos++; pos++;
} }