summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-09-20 14:01:54 +0800
committerPeng Wu <alexepico@gmail.com>2016-09-20 14:01:54 +0800
commit61e998dbc8ddb9d95a5fc4c4a91e5a625837d416 (patch)
tree1e74e787d4a5f9c1651712bc57ba845cb0a5f775
parent0f25736207f72c8f769b1c9264373c038f7bfa8e (diff)
downloadibus-libzhuyin-61e998dbc8ddb9d95a5fc4c4a91e5a625837d416.tar.gz
ibus-libzhuyin-61e998dbc8ddb9d95a5fc4c4a91e5a625837d416.tar.xz
ibus-libzhuyin-61e998dbc8ddb9d95a5fc4c4a91e5a625837d416.zip
rename variables
-rw-r--r--src/ZYSymbols.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ZYSymbols.cc b/src/ZYSymbols.cc
index b1e2ea4..40cdb93 100644
--- a/src/ZYSymbols.cc
+++ b/src/ZYSymbols.cc
@@ -243,14 +243,14 @@ get_choice_list (const gint key, gchar ** & choices)
bool
is_special_symbol (const gint key)
{
- String punct;
- return convert_special_symbol (key, punct);
+ String symbol;
+ return convert_special_symbol (key, symbol);
}
bool
-convert_special_symbol (const gint key, String & punct)
+convert_special_symbol (const gint key, String & symbol)
{
- punct = "";
+ symbol = "";
static const char keybuf[] = {
'[', ']', '{', '}', '\'','<', ':', '\"', '>',
@@ -291,7 +291,7 @@ convert_special_symbol (const gint key, String & punct)
assert(G_N_ELEMENTS (keybuf) == G_N_ELEMENTS (chibuf));
for (size_t i = 0; i < G_N_ELEMENTS (keybuf); ++i) {
if (key == keybuf[i]) {
- punct = chibuf[i];
+ symbol = chibuf[i];
return true;
}
}
@@ -302,14 +302,14 @@ convert_special_symbol (const gint key, String & punct)
bool
is_full_width_symbol (const gint key)
{
- String english;
- return convert_full_width_symbol (key, english);
+ String symbol;
+ return convert_full_width_symbol (key, symbol);
}
bool
-convert_full_width_symbol (const gint key, String & english)
+convert_full_width_symbol (const gint key, String & symbol)
{
- english = "";
+ symbol = "";
static char keybuf[] = {
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
@@ -366,12 +366,12 @@ convert_full_width_symbol (const gint key, String & english)
assert(G_N_ELEMENTS (keybuf) == G_N_ELEMENTS (chibuf));
for (size_t i = 0; i < G_N_ELEMENTS (keybuf); ++i) {
if (key == keybuf[i]) {
- english = chibuf[i];
+ symbol = chibuf[i];
return true;
}
}
- return convert_special_symbol (key, english);
+ return convert_special_symbol (key, symbol);
}
};