https://bugs.documentfoundation.org/show_bug.cgi?id=128122
--- Comment #20 from Andreas Heinisch <andreas.heini...@yahoo.de> ---
You may start with the number formatter:
LanguageType eLangType =
Application::GetSettings().GetLanguageTag().getLanguageType();
std::shared_ptr<SvNumberFormatter> pNumberFormatter =
std::make_shared<SvNumberFormatter>(
comphelper::getProcessComponentContext(), eLangType );
double fResult = 0;
sal_uInt32 nIndex = pNumberFormatter->GetStandardIndex( eLangType );
bool bSuccess = pNumberFormatter->IsNumberFormat( rStr, nIndex, fResult );
if ( bSuccess )
{
SvNumFormatType nType = pNumberFormatter->GetType( nIndex );
bSuccess = nType & SvNumFormatType::CURRENCY || nType &
SvNumFormatType::NUMBER;
}
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs