mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-16 01:41:55 +00:00
refactoring: run clang-format against code
This commit is contained in:
@@ -314,7 +314,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
FILE *output;
|
FILE *output;
|
||||||
};
|
};
|
||||||
}
|
} // namespace
|
||||||
|
|
||||||
search_result Library::process_phrase(const char *loc_str, IReadLine &io, bool force)
|
search_result Library::process_phrase(const char *loc_str, IReadLine &io, bool force)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public:
|
|||||||
return stdio_getline(stdin, line);
|
return stdio_getline(stdin, line);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
} // namespace
|
||||||
#else
|
#else
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
@@ -116,7 +116,7 @@ public:
|
|||||||
add_history(phrase.c_str());
|
add_history(phrase.c_str());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
} // namespace
|
||||||
#endif //WITH_READLINE
|
#endif //WITH_READLINE
|
||||||
|
|
||||||
IReadLine *create_readline_object()
|
IReadLine *create_readline_object()
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ static void free_str_array(gchar **arr)
|
|||||||
g_free(*p);
|
g_free(*p);
|
||||||
g_free(arr);
|
g_free(arr);
|
||||||
}
|
}
|
||||||
}
|
} // namespace
|
||||||
namespace glib
|
namespace glib
|
||||||
{
|
{
|
||||||
using StrArr = ResourceWrapper<gchar *, gchar *, free_str_array>;
|
using StrArr = ResourceWrapper<gchar *, gchar *, free_str_array>;
|
||||||
@@ -61,7 +61,8 @@ using StrArr = ResourceWrapper<gchar *, gchar *, free_str_array>;
|
|||||||
|
|
||||||
static void list_dicts(const std::list<std::string> &dicts_dir_list, bool use_json);
|
static void list_dicts(const std::list<std::string> &dicts_dir_list, bool use_json);
|
||||||
|
|
||||||
int main(int argc, char *argv[]) try {
|
int main(int argc, char *argv[])
|
||||||
|
try {
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
#if ENABLE_NLS
|
#if ENABLE_NLS
|
||||||
bindtextdomain("sdcv",
|
bindtextdomain("sdcv",
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ static void unicode_strdown(gunichar *str)
|
|||||||
++str;
|
++str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} // namespace
|
||||||
|
|
||||||
bool DictInfo::load_from_ifo_file(const std::string &ifofilename,
|
bool DictInfo::load_from_ifo_file(const std::string &ifofilename,
|
||||||
bool istreedict)
|
bool istreedict)
|
||||||
@@ -826,7 +826,7 @@ bool WordListIndex::lookup(const char *str, glong &idx)
|
|||||||
}
|
}
|
||||||
return bFound;
|
return bFound;
|
||||||
}
|
}
|
||||||
}
|
} // namespace
|
||||||
|
|
||||||
bool SynFile::load(const std::string &url, gulong wc)
|
bool SynFile::load(const std::string &url, gulong wc)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ namespace glib
|
|||||||
{
|
{
|
||||||
typedef ResourceWrapper<gchar, void, g_free> CharStr;
|
typedef ResourceWrapper<gchar, void, g_free> CharStr;
|
||||||
typedef ResourceWrapper<GError, GError, g_error_free> Error;
|
typedef ResourceWrapper<GError, GError, g_error_free> Error;
|
||||||
}
|
} // namespace glib
|
||||||
|
|
||||||
extern std::string utf8_to_locale_ign_err(const std::string &utf8_str);
|
extern std::string utf8_to_locale_ign_err(const std::string &utf8_str);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user