Ignore:
Timestamp:
02/06/15 00:15:08 (9 years ago)
Author:
Maciej Komosinski
Message:

Unified parsing of ints and floats; hex notation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/util/extvalue.h

    r325 r326  
    160160        void setString(const SString &v) { if (type != TString) setrs(v); else sdata() = v; }
    161161        void setObject(const ExtObject &src) { if (type != TObj) setro(src); else odata() = src; }
    162         static bool parseInt(const char* s, paInt &result, bool strict = false);
    163         static bool parseDouble(const char* s, double &result);
     162        static bool parseInt(const char* s, paInt &result, bool strict, bool error);
     163        static bool parseDouble(const char* s, double &result, bool error);
    164164        static paInt getInt(const char* s, bool strict = false);//< @param strict=true will fail on floating point
    165165        static double getDouble(const char* s);
Note: See TracChangeset for help on using the changeset viewer.