14 #include <fc_config.h>
45 }
else if ((ptr = strchr(str,
':'))) {
59 int len = qstrlen(str);
60 char *result =
new char[
len + 1];
64 if (
static_cast<unsigned char>(result[0]) < 128) {
65 result[0] = QChar::toUpper(result[0]);
const char * get_locale_dir()
Return directory containing locales.
char * capitalized_string(const char *str)
This function tries to capitalize first letter of the string.
const char * skip_intl_qualifier_prefix(const char *str)
Some strings are ambiguous for translation.
void free_capitalized(char *str)
Free capitalized string.
void capitalization_opt_in(bool opt_in)
Translation opts in to automatic capitalization features.
bool is_capitalization_enabled()
Automatic capitalization features requested.
size_t fc_strlcpy(char *dest, const char *src, size_t n)
fc_strlcpy() provides utf-8 version of (non-standard) function strlcpy() It is intended as more user-...