diff options
Diffstat (limited to 'i18npool/source/localedata/filewriter.cxx')
-rw-r--r-- | i18npool/source/localedata/filewriter.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/i18npool/source/localedata/filewriter.cxx b/i18npool/source/localedata/filewriter.cxx index f1c76db7da9a..e6bafdee5e7c 100644 --- a/i18npool/source/localedata/filewriter.cxx +++ b/i18npool/source/localedata/filewriter.cxx @@ -65,8 +65,8 @@ void OFileWriter::writeOUStringRefFunction(const char *func, std::u16string_view { OString aRefLocale( OUStringToOString(useLocale, RTL_TEXTENCODING_ASCII_US) ); const char* locale = aRefLocale.getStr(); - fprintf(m_f, "extern const OUString * SAL_CALL %s%s(sal_Int16& count);\n", func, locale); - fprintf(m_f, "SAL_DLLPUBLIC_EXPORT const OUString * SAL_CALL %s%s(sal_Int16& count)\n{\n", func, theLocale.c_str()); + fprintf(m_f, "extern const OUString * %s%s(sal_Int16& count);\n", func, locale); + fprintf(m_f, "SAL_DLLPUBLIC_EXPORT const OUString * %s%s(sal_Int16& count)\n{\n", func, theLocale.c_str()); fprintf(m_f, "\treturn %s%s(count);\n}\n", func, locale); } @@ -74,8 +74,8 @@ void OFileWriter::writeOUStringRefFunction(const char *func, std::u16string_view { OString aRefLocale( OUStringToOString(useLocale, RTL_TEXTENCODING_ASCII_US) ); const char* locale = aRefLocale.getStr(); - fprintf(m_f, "extern OUString const * SAL_CALL %s%s(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to);\n", func, locale); - fprintf(m_f, "SAL_DLLPUBLIC_EXPORT OUString const * SAL_CALL %s%s(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to)\n{\n", func, theLocale.c_str()); + fprintf(m_f, "extern OUString const * %s%s(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to);\n", func, locale); + fprintf(m_f, "SAL_DLLPUBLIC_EXPORT OUString const * %s%s(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to)\n{\n", func, theLocale.c_str()); fprintf(m_f, "\tto = %s;\n", to); fprintf(m_f, "\tconst sal_Unicode* tmp;\n"); fprintf(m_f, "\treturn %s%s(count, from, tmp);\n}\n", func, locale); @@ -83,14 +83,14 @@ void OFileWriter::writeOUStringRefFunction(const char *func, std::u16string_view void OFileWriter::writeOUStringFunction(const char *func, const char *count, const char *array) const { - fprintf(m_f, "SAL_DLLPUBLIC_EXPORT OUString const * SAL_CALL %s%s(sal_Int16& count)\n{\n", func, theLocale.c_str()); + fprintf(m_f, "SAL_DLLPUBLIC_EXPORT OUString const * %s%s(sal_Int16& count)\n{\n", func, theLocale.c_str()); fprintf(m_f, "\tcount = %s;\n", count); fprintf(m_f, "\treturn (OUString const *)%s;\n}\n", array); } void OFileWriter::writeOUStringFunction(const char *func, const char *count, const char *array, const char *from, const char *to) const { - fprintf(m_f, "SAL_DLLPUBLIC_EXPORT OUString const * SAL_CALL %s%s(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to)\n{\n", func, theLocale.c_str()); + fprintf(m_f, "SAL_DLLPUBLIC_EXPORT OUString const * %s%s(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to)\n{\n", func, theLocale.c_str()); fprintf(m_f, "\tcount = %s;\n", count); fprintf(m_f, "\tfrom = %s;\n", from); fprintf(m_f, "\tto = %s;\n", to); @@ -99,7 +99,7 @@ void OFileWriter::writeOUStringFunction(const char *func, const char *count, con void OFileWriter::writeOUStringFunction2(const char *func, const char *style, const char* attr, const char *array) const { - fprintf(m_f, "SAL_DLLPUBLIC_EXPORT const OUString ** SAL_CALL %s%s( sal_Int16& nStyles, sal_Int16& nAttributes )\n{\n", func, theLocale.c_str()); + fprintf(m_f, "SAL_DLLPUBLIC_EXPORT const OUString ** %s%s( sal_Int16& nStyles, sal_Int16& nAttributes )\n{\n", func, theLocale.c_str()); fprintf(m_f, "\tnStyles = %s;\n", style); fprintf(m_f, "\tnAttributes = %s;\n", attr); fprintf(m_f, "\treturn (const OUString **)%s;\n}\n", array); @@ -109,14 +109,14 @@ void OFileWriter::writeOUStringRefFunction2(const char *func, std::u16string_vie { OString aRefLocale( OUStringToOString(useLocale, RTL_TEXTENCODING_ASCII_US) ); const char* locale = aRefLocale.getStr(); - fprintf(m_f, "extern const OUString ** SAL_CALL %s%s(sal_Int16& nStyles, sal_Int16& nAttributes);\n", func, locale); - fprintf(m_f, "SAL_DLLPUBLIC_EXPORT const OUString ** SAL_CALL %s%s(sal_Int16& nStyles, sal_Int16& nAttributes)\n{\n", func, theLocale.c_str()); + fprintf(m_f, "extern const OUString ** %s%s(sal_Int16& nStyles, sal_Int16& nAttributes);\n", func, locale); + fprintf(m_f, "SAL_DLLPUBLIC_EXPORT const OUString ** %s%s(sal_Int16& nStyles, sal_Int16& nAttributes)\n{\n", func, theLocale.c_str()); fprintf(m_f, "\treturn %s%s(nStyles, nAttributes);\n}\n", func, locale); } void OFileWriter::writeOUStringFunction3(const char *func, const char *style, const char* levels, const char* attr, const char *array) const { - fprintf(m_f, "SAL_DLLPUBLIC_EXPORT const OUString *** SAL_CALL %s%s( sal_Int16& nStyles, sal_Int16& nLevels, sal_Int16& nAttributes )\n{\n", func, theLocale.c_str()); + fprintf(m_f, "SAL_DLLPUBLIC_EXPORT const OUString *** %s%s( sal_Int16& nStyles, sal_Int16& nLevels, sal_Int16& nAttributes )\n{\n", func, theLocale.c_str()); fprintf(m_f, "\tnStyles = %s;\n", style); fprintf(m_f, "\tnLevels = %s;\n", levels); fprintf(m_f, "\tnAttributes = %s;\n", attr); @@ -127,8 +127,8 @@ void OFileWriter::writeOUStringRefFunction3(const char *func, std::u16string_vie { OString aRefLocale( OUStringToOString(useLocale, RTL_TEXTENCODING_ASCII_US) ); const char* locale = aRefLocale.getStr(); - fprintf(m_f, "extern const OUString *** SAL_CALL %s%s(sal_Int16& nStyles, sal_Int16& nLevels, sal_Int16& nAttributes);\n", func, locale); - fprintf(m_f, "SAL_DLLPUBLIC_EXPORT const OUString *** SAL_CALL %s%s(sal_Int16& nStyles, sal_Int16& nLevels, sal_Int16& nAttributes)\n{\n", func, theLocale.c_str()); + fprintf(m_f, "extern const OUString *** %s%s(sal_Int16& nStyles, sal_Int16& nLevels, sal_Int16& nAttributes);\n", func, locale); + fprintf(m_f, "SAL_DLLPUBLIC_EXPORT const OUString *** %s%s(sal_Int16& nStyles, sal_Int16& nLevels, sal_Int16& nAttributes)\n{\n", func, theLocale.c_str()); fprintf(m_f, "\treturn %s%s(nStyles, nLevels, nAttributes);\n}\n", func, locale); } |