template<typename in_item_type>
void append(const in_item_type * item_array, size_t len);
when adding values from item_array are casted to the type of the internal buffer
changed: some minor optimizations in Space (in Add() methods with WTextStream as an argument)
changed: removed following write() methods from TextStreamBase:
TextStreamBase & write(const char * buf, size_t len);
TextStreamBase & write(const wchar_t * buf, size_t len);
and added a template instead:
template<typename in_buffer_type>
TextStreamBase & write(const in_buffer_type * buf, size_t len);
this allows to write char* buffer to TextStreamBase<wchar_t...> (and vice versa)
added: two write() methods to TextStreamBase:
write(const char * format, double val);
write(const wchar_t * format, double val);
converting double value to the text (format is the same as in snprintf)
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@448 e52654a7-88a9-db11-a3e9-0013d4bc506e
changed: in SpaceToJSON::PrintToken():
slash doesn't have to be escaped when serializing to JSON
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@444 e52654a7-88a9-db11-a3e9-0013d4bc506e
we have to initialize some variables before calling the operator=
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@434 e52654a7-88a9-db11-a3e9-0013d4bc506e
so we can parse:
# such a \n string
beforehand this \n was treated as a new line character
and the parser was returning syntax error when reading above 'string'
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@432 e52654a7-88a9-db11-a3e9-0013d4bc506e
added: SpaceToJSON -- a serializer from Space structure to JSON (not finished yet)
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@427 e52654a7-88a9-db11-a3e9-0013d4bc506e
white characters can be escaped by '\ ' and in such a case this is not a delimiter
(when reading single token)
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@410 e52654a7-88a9-db11-a3e9-0013d4bc506e
fixed: in SpaceParser::ReadTokenSingle
the delimiter can be only if the character was not escaped
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@409 e52654a7-88a9-db11-a3e9-0013d4bc506e
removed: some errors checking at the end of a line
now we can have in the same line: value="option" value2="option2"
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@408 e52654a7-88a9-db11-a3e9-0013d4bc506e
now we can map all strings to all strings
documentation in space.h need to be updated yet
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@407 e52654a7-88a9-db11-a3e9-0013d4bc506e
with O(1) algorithm for converting from time_t (seconds from Unix epoch)
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@405 e52654a7-88a9-db11-a3e9-0013d4bc506e
methods Add() return a reference to the inserted value now (std::wstring &)
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@383 e52654a7-88a9-db11-a3e9-0013d4bc506e
long Long(const wchar_t * name)
for getting a long variable,
added: to Space:
void Add(const wchar_t * name, long value)
void Add(const wchar_t * name, const wchar_t * value)
for inserting a variable,
added: to Space:
Space & AddSpace(const wchar_t * name);
for inserting a new space
added: to Space:
Space * FindSpace(const wchar_t * name);
to find a specified space
added: to Space:
Space & FindAddSpace(const wchar_t * name);
to find a specified space and if not exists
automatically add a new one
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@379 e52654a7-88a9-db11-a3e9-0013d4bc506e