43 while( pStrm->ReadLine( aLine ) )
51 if( aLine.startsWith(
"#" ) )
55 if( (
n = aLine.indexOf(
'=' ) ) >= 1)
57 aKey = OStringToOUString(
58 o3tl::trim(aLine.subView( 0,
n )), RTL_TEXTENCODING_ASCII_US );
59 aValue = OStringToOUString(
60 o3tl::trim(aLine.subView(
n + 1 )), RTL_TEXTENCODING_UTF8 );
62 if( (
n = aKey.indexOf(
'[' ) ) >= 1 )
66 if( (
n = aLocale.indexOf(
']' ) ) >= 1 )
70 SAL_INFO(
"svx",
"ini file has '" << aKey <<
"' [ '" << aLocale <<
"' ] = '" << aValue <<
"'");
73 if( aKey == aKeyName )
77 OUString aLang = aLocale.replace(
'_',
'-');
78 for(
const auto& rFallback : aFallbacks )
80 SAL_INFO(
"svx",
"compare '" << aLang <<
"' with '" << rFallback <<
"' rank " << nRank <<
" vs. " <<
n );
81 if( rFallback == aLang &&
n < nRank ) {
91 SAL_INFO(
"svx",
"readStrFromIni returns '" << aResult <<
"'");
const LanguageTag & GetUILanguageTag() const
static const AllSettings & GetSettings()
OUString ReadStrFromIni(std::u16string_view aKeyName) const
const INetURLObject & GetStrURL() const
::std::vector< OUString > getFallbackStrings(bool bIncludeFullBcp47) const
static std::unique_ptr< SvStream > CreateStream(const OUString &rFileName, StreamMode eOpenMode, css::uno::Reference< css::awt::XWindow > xParentWin=nullptr)
#define SAL_INFO(area, stream)
std::basic_string_view< charT, traits > trim(std::basic_string_view< charT, traits > str)