21#ifndef KSPREAD_VALUEPARSER
22#define KSPREAD_VALUEPARSER
24#include <tqdatetime.h>
26#include "kspread_global.h"
48 void parse ( const TQString& str, Cell *cell);
53 Value tryParseBool ( const TQString& str, bool *ok = 0);
54 Value tryParseNumber ( const TQString& str, bool *ok = 0);
55 Value tryParseDate ( const TQString& str, bool *ok = 0);
56 Value tryParseTime ( const TQString& str, bool *ok = 0);
59 TDELocale* parserLocale;
63 bool tryParseBool ( const TQString& str, Cell *cell);
64 bool tryParseNumber ( const TQString& str, Cell *cell);
65 bool tryParseDate ( const TQString& str, Cell *cell);
66 bool tryParseTime ( const TQString& str, Cell *cell);
69 TQDateTime readTime ( const TQString & intstr, bool withSeconds, bool *ok,
73 double readNumber( const TQString &_str, bool * ok, bool * isInt);
75 int readInt ( const TQString &str, uint &pos);
For every cell in the spread sheet there is a Cell object.
TQDateTime readTime(const TQString &intstr, bool withSeconds, bool *ok, bool &duration) converts a string to a date/time value
void parse(const TQString &str, Cell *cell) try to parse the text in a given cell and set value accordingly
ValueParser(TDELocale *locale) constructor
double readNumber(const TQString &_str, bool *ok, bool *isInt) a helper function to read numbers and distinguish integers and FPs
int readInt(const TQString &str, uint &pos) a helper function to read integers
Provides a wrapper for cell value.
|