LibreOffice Module sc (master) 1
|
#include <stringutil.hxx>
Static Public Member Functions | |
static bool | parseSimpleNumber (const OUString &rStr, sal_Unicode dsep, sal_Unicode gsep, sal_Unicode dsepa, double &rVal, bool bDetectScientificNumber=true) |
Check if a given string is a simple decimal number (e.g. More... | |
static bool | parseSimpleNumber (const char *p, size_t n, char dsep, char gsep, double &rVal) |
static OUString SC_DLLPUBLIC | GetQuotedToken (const OUString &rIn, sal_Int32 nToken, const OUString &rQuotedPairs, sal_Unicode cTok, sal_Int32 &rIndex) |
static bool SC_DLLPUBLIC | isMultiline (std::u16string_view rStr) |
static ScInputStringType | parseInputString (SvNumberFormatter &rFormatter, const OUString &rStr, LanguageType eLang) |
Definition at line 131 of file stringutil.hxx.
|
static |
Definition at line 350 of file stringutil.cxx.
Referenced by XclImpWebQuery::ReadWqtables().
|
static |
Definition at line 425 of file stringutil.cxx.
References u.
Referenced by ScViewFunc::EnterData(), lcl_PutDataArray(), lcl_PutString(), ScXMLTableRowCellContext::PushParagraphEnd(), ScDatabaseDocUtil::PutData(), ScDocFunc::SetStringOrEditCell(), and ScDocument::SetTextCell().
|
static |
Definition at line 430 of file stringutil.cxx.
References ScInputStringType::Formula, SvNumberFormatter::GetStandardIndex(), SvNumberFormatter::GetType(), SvNumberFormatter::IsNumberFormat(), ScInputStringType::maText, ScInputStringType::meType, ScInputStringType::mfValue, ScInputStringType::mnFormatType, ScInputStringType::Number, ScInputStringType::Text, and ScInputStringType::Unknown.
Referenced by ScCellObj::InputEnglishString(), lcl_PutFormulaArray(), and ScDocFunc::SetCellText().
|
static |
|
static |
Check if a given string is a simple decimal number (e.g.
12.345). We don't do any elaborate parsing here; we only check for the simplest case of decimal number format.
Note that preceding and trailing spaces are ignored during parsing.
rStr | string to parse |
dsep | decimal separator |
gsep | group separator (aka thousands separator) |
dsepa | decimal separator alternative, usually 0 |
rVal | value of successfully parsed number |
Definition at line 55 of file stringutil.cxx.
Referenced by ScColumn::ParseString().