Tomasz Sowa
6e4a0f68b3
removed from SpaceParser: SetDefault(), SkipEmpty(bool skip) and UseEscapeChar(bool escape) methods
2021-05-21 04:28:31 +02:00
Tomasz Sowa
82a21f6d85
removed: SpaceParser::SetSpace(...) methods, now ParseJSON/Space(...) methods take a space as an argument
2021-05-21 01:33:01 +02:00
Tomasz Sowa
abeca010cc
fixed: SpaceParser was using space->set_empty_object() when parsing a space
...
and it cleared all values if not an empty object was provided to the set_space() method
2021-05-21 00:26:19 +02:00
Tomasz Sowa
59d4c9a9c8
changed utf8 functions: PascalCase to snake_case
2021-05-21 00:24:56 +02:00
Tomasz Sowa
b574289054
namespace PT renamed to pt
2021-05-20 16:11:12 +02:00
Tomasz Sowa
6f50626dda
fixed another memory leak in CSVParser::parse() (similar like before)
2021-05-19 22:34:10 +02:00
Tomasz Sowa
f8d24de386
fixed memory leak in CSVParser::parse() - a Space struct was allocated but never freed
2021-05-19 22:31:18 +02:00
Tomasz Sowa
604b47db32
added move semantics to Space class
...
added methods:
Space(Space && space);
Space & operator=(Space && space);
void set(const Space & space);
void set(Space && space);
Space & add(const Space & space);
Space & add(Space && space);
Space & add(const wchar_t * field, const Space & space);
Space & add(const wchar_t * field, Space && space);
Space & add(const std::wstring & field, const Space & space);
Space & add(const std::wstring & field, Space && space);
2021-05-19 22:24:53 +02:00
Tomasz Sowa
430822bad8
make depend
2021-05-19 03:26:57 +02:00
Tomasz Sowa
0ea5497094
added CSVParser - a csv parser
2021-05-19 03:26:46 +02:00
Tomasz Sowa
ae1d25d5f3
removed old not used variable from Space
2021-05-19 03:23:18 +02:00
Tomasz Sowa
db93586c0e
make depend
2021-05-18 23:58:17 +02:00
Tomasz Sowa
ad4e8078ae
MainSpaceParser class has been renamed to MainOptionsParser
2021-05-18 23:57:58 +02:00
Tomasz Sowa
96e60c526f
moved files: mainspaceparser/mainspaceparser.(h|cpp) -> mainoptions/mainoptionsparser.(h|cpp)
2021-05-18 23:50:42 +02:00
Tomasz Sowa
a5c8833452
added tests for MainSpaceParser
2021-05-18 22:57:26 +02:00
Tomasz Sowa
ac691bccb7
updated MainSpaceParser to the new Space format, changed api to snake case
...
now we can:
- parse short options, those beginning with a hypnen '-'
- parse long options, those beginning with two hyphens '--'
- long options can have arguments in two forms:
- either with an equal sign, e.g.: --opion-name=argument
- or with a space, e.g: --option argument
in the latter case we can have more than one argument, e.g: --option argument1 argument2
- parse non-option arguments, those after two hyphens to the end of a string, e.g: -- arg1 arg2
2021-05-17 03:09:21 +02:00
Tomasz Sowa
77d7bb5e64
fixed in Space: set_empty_string(), set_empty_wstring(), set_empty_table() and set_empty_object() didn't clear its object
...
if the same kind of object already existed
2021-05-17 03:08:32 +02:00
Tomasz Sowa
cd9e501f48
make depend
2021-05-10 20:08:19 +02:00
Tomasz Sowa
b3cd4d5f7f
removed definition of CXX and CXXFLAGS from Makefile
2021-05-10 20:07:08 +02:00
Tomasz Sowa
adee7d134f
added macro PT_HAS_MORM in Log class where operator<<(morm::Model & model) is used
2021-05-10 20:05:55 +02:00
Tomasz Sowa
7abe4b340a
changes in convert/text functions
...
- changed function names: PascalCase to snake_case
- templates functions moved to a seperate file (text_private.h)
- as a public api only available functions with char/wchar_t/std::string/std::wstring
- ToLower(...) changed to to_lower_emplace(...), similar ToUpper(...) to to_upper_emplace(...)
- added functions:
std::string to_lower(const std::string & str);
std::string to_upper(const std::string & str);
and with std::wstring too
- functions with postfix 'NoCase' changed to 'nc'
2021-05-10 20:04:12 +02:00
Tomasz Sowa
3984c29fbf
moved all directories to src subdirectory
2021-05-09 20:11:37 +02:00