LibreOffice Module basic (master) 1
|
#include <sal/config.h>
#include <string_view>
#include <config_features.h>
#include <comphelper/errcode.hxx>
#include <unotools/resmgr.hxx>
#include "sbxconv.hxx"
#include <rtlproto.hxx>
#include <unotools/syslocale.hxx>
#include <unotools/charclass.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <math.h>
#include <sbxbase.hxx>
#include <sbintern.hxx>
#include <sbxform.hxx>
#include <date.hxx>
#include <runtime.hxx>
#include <strings.hrc>
#include <rtl/character.hxx>
#include <rtl/math.hxx>
#include <svl/numformat.hxx>
#include <svl/zforlist.hxx>
#include <o3tl/string_view.hxx>
Go to the source code of this file.
Functions | |
void | ImpGetIntntlSep (sal_Unicode &rcDecimalSep, sal_Unicode &rcThousandSep, sal_Unicode &rcDecimalSepAlt) |
static bool | ImpStrChr (std::u16string_view str, sal_Unicode c) |
ErrCode | ImpScan (const OUString &rWSrc, double &nVal, SbxDataType &rType, sal_uInt16 *pLen, bool bOnlyIntntl) |
void | ImpCvtNum (double nNum, short nPrec, OUString &rRes, bool bCoreString) |
bool | ImpConvStringExt (OUString &rSrc, SbxDataType eTargetType) |
static sal_uInt16 | printfmtstr (const OUString &rStr, OUString &rRes, const OUString &rFmt) |
std::locale | BasResLocale () |
OUString | BasResId (TranslateId aId) |
OUString BasResId | ( | TranslateId | aId | ) |
Definition at line 432 of file sbxscan.cxx.
References BasResLocale(), and Translate::get().
Referenced by BasicDLL::BasicBreak(), SbxValue::Format(), and StarBASIC::MakeErrorText().
std::locale BasResLocale | ( | ) |
Definition at line 427 of file sbxscan.cxx.
References Translate::Create().
Referenced by BasResId().
bool ImpConvStringExt | ( | OUString & | rSrc, |
SbxDataType | eTargetType | ||
) |
Definition at line 301 of file sbxscan.cxx.
References ImpGetIntntlSep(), nPos, SbxCURRENCY, SbxDOUBLE, SbxFALSE, SbxSINGLE, and SbxTRUE.
Referenced by SbxValue::PutStringExt().
void ImpCvtNum | ( | double | nNum, |
short | nPrec, | ||
OUString & | rRes, | ||
bool | bCoreString | ||
) |
Definition at line 290 of file sbxscan.cxx.
References ImpGetIntntlSep().
Referenced by SbxValue::Format(), ImpPutByte(), ImpPutDouble(), ImpPutInteger(), ImpPutLong(), ImpPutSingle(), ImpPutULong(), and ImpPutUShort().
void ImpGetIntntlSep | ( | sal_Unicode & | rcDecimalSep, |
sal_Unicode & | rcThousandSep, | ||
sal_Unicode & | rcDecimalSepAlt | ||
) |
Definition at line 54 of file sbxscan.cxx.
References SvtSysLocale::GetLocaleData(), LocaleDataWrapper::getNumDecimalSep(), LocaleDataWrapper::getNumDecimalSepAlt(), and LocaleDataWrapper::getNumThousandSep().
Referenced by SbxDecimal::getString(), ImpConvStringExt(), ImpCvtNum(), and ImpScan().
ErrCode ImpScan | ( | const OUString & | rWSrc, |
double & | nVal, | ||
SbxDataType & | rType, | ||
sal_uInt16 * | pLen, | ||
bool | bOnlyIntntl | ||
) |
Definition at line 71 of file sbxscan.cxx.
References aBuf, base, ch, ERRCODE_BASIC_CONVERSION, ERRCODE_NONE, i, ImpGetIntntlSep(), ImpStrChr(), SbiRuntime::isVBAEnabled(), p, SbxDOUBLE, SbxINTEGER, SbxLONG, SbxMAXINT, SbxMAXLNG, SbxMININT, SbxMINLNG, SbxSINGLE, and u.
Referenced by ImpGetBool(), ImpGetByte(), ImpGetChar(), ImpGetDouble(), ImpGetInt64(), ImpGetInteger(), ImpGetLong(), ImpGetSingle(), ImpGetUInt64(), ImpGetULong(), ImpGetUShort(), SbxValue::ImpIsNumeric(), SbxValue::LoadData(), SbxVariable::LoadData(), SbxValue::Scan(), and SbxValue::ScanNumIntnl().
|
static |
Definition at line 64 of file sbxscan.cxx.
Referenced by ImpScan().
|
static |