#include <valueparser.h>
|
| bool | tryParseBool (const TQString &str, Cell *cell) |
| bool | tryParseNumber (const TQString &str, Cell *cell) |
| bool | tryParseDate (const TQString &str, Cell *cell) |
| bool | tryParseTime (const TQString &str, Cell *cell) |
| TQDateTime | readTime (const TQString &intstr, bool withSeconds, bool *ok, bool &duration) |
| double | readNumber (const TQString &_str, bool *ok, bool *isInt) |
| int | readInt (const TQString &str, uint &pos) |
The ValueParser parses a text input from the user, generating Value in the desired format.
Definition at line 40 of file valueparser.h.
◆ ValueParser()
| ValueParser::ValueParser |
( |
TDELocale * | locale | ) |
|
◆ locale()
| TDELocale * ValueParser::locale |
( |
| ) |
|
◆ parse() [1/2]
| Value ValueParser::parse |
( |
const TQString & | str | ) |
|
try to parse given text, don't set any cell attributes though
Definition at line 88 of file valueparser.cpp.
◆ parse() [2/2]
| void ValueParser::parse |
( |
const TQString & | str, |
|
|
Cell * | cell ) |
try to parse the text in a given cell and set value accordingly
Definition at line 39 of file valueparser.cpp.
◆ readInt()
| int ValueParser::readInt |
( |
const TQString & | str, |
|
|
uint & | pos ) |
|
protected |
a helper function to read integers
helper function to read integers, used in readTime
- Parameters
-
| str | |
| pos | the position to start at. It will be updated when we parse it. |
- Returns
- the integer read in the string, or -1 if no string
Definition at line 618 of file valueparser.cpp.
◆ readNumber()
| double ValueParser::readNumber |
( |
const TQString & | _str, |
|
|
bool * | ok, |
|
|
bool * | isInt ) |
|
protected |
a helper function to read numbers and distinguish integers and FPs
Definition at line 202 of file valueparser.cpp.
◆ readTime()
| TQDateTime ValueParser::readTime |
( |
const TQString & | intstr, |
|
|
bool | withSeconds, |
|
|
bool * | ok, |
|
|
bool & | duration ) |
|
protected |
◆ tryParseBool() [1/2]
| Value ValueParser::tryParseBool |
( |
const TQString & | str, |
|
|
bool * | ok = 0 ) |
◆ tryParseBool() [2/2]
| bool ValueParser::tryParseBool |
( |
const TQString & | str, |
|
|
Cell * | cell ) |
|
protected |
◆ tryParseDate() [1/2]
| Value ValueParser::tryParseDate |
( |
const TQString & | str, |
|
|
bool * | ok = 0 ) |
◆ tryParseDate() [2/2]
| bool ValueParser::tryParseDate |
( |
const TQString & | str, |
|
|
Cell * | cell ) |
|
protected |
◆ tryParseNumber() [1/2]
| Value ValueParser::tryParseNumber |
( |
const TQString & | str, |
|
|
bool * | ok = 0 ) |
◆ tryParseNumber() [2/2]
| bool ValueParser::tryParseNumber |
( |
const TQString & | str, |
|
|
Cell * | cell ) |
|
protected |
◆ tryParseTime() [1/2]
| Value ValueParser::tryParseTime |
( |
const TQString & | str, |
|
|
bool * | ok = 0 ) |
◆ tryParseTime() [2/2]
| bool ValueParser::tryParseTime |
( |
const TQString & | str, |
|
|
Cell * | cell ) |
|
protected |
◆ fmtType
| FormatType KSpread::ValueParser::fmtType |
|
protected |
◆ parserLocale
| TDELocale* KSpread::ValueParser::parserLocale |
|
protected |
The documentation for this class was generated from the following files:
|