Commit Graph

  • e24112b79b some work in Space API: added: new GetValue() implementation Value * GetValue(const wchar_t * name) Value * GetValue(const std::wstring & name) const Value * GetValue(const wchar_t * name) const const Value * GetValue(const std::wstring & name) const added: const correctness for Text() and TextA() methods std::wstring Text(...) const; std::string TextA(...) const; added: TextA() with a wide second argument std::string TextA(const wchar_t * name, const wchar_t * def) const; std::string TextA(const std::wstring & name, const wchar_t * def) const; std::string TextA(const std::wstring & name, const std::wstring & def) const; Tomasz Sowa 2017-12-07 11:35:12 +0000
  • 7d51372844 added: functions for dealing with white characters: bool IsWhite(wchar_t c, bool check_additional_chars, bool treat_new_line_as_white) (checking unicode white characters too) CharType * SkipWhite(CharType * str, bool check_additional_chars = true, bool treat_new_line_as_white = true) IsDigit(wchar_t c, int base, int * digit) Tomasz Sowa 2017-12-05 16:32:21 +0000
  • cde990ba82 start changing the Space API removed table_single from Space Tomasz Sowa 2017-06-27 16:51:55 +0000
  • 62f16ecb1b changed: using relative paths calculated with relative_path now Tomasz Sowa 2016-03-18 09:27:40 +0000
  • 9deb2ff2f2 some work in MainSpaceParser: added reading long (--longname) parameters Tomasz Sowa 2016-02-08 18:00:17 +0000
  • 7b4b576489 added: MainSpaceParser - starting writing a parser for main(argc, argv) arguments (a Space object is returned) Tomasz Sowa 2016-01-21 18:49:42 +0000
  • d9b583df76 instead of directly using 'ar' program we are using the AR macro now (which defaults to 'ar' if you do not define it) Tomasz Sowa 2014-11-12 04:11:28 +0000
  • d655c7c872 removed: svn:executable attribute from files Tomasz Sowa 2014-11-01 17:11:00 +0000
  • 39717a4dd2 fixed: in static size_t WideToInt(const wchar_t * wide_string, size_t string_len, int & z, bool & correct) we didn't test UTF8_CheckRange() Tomasz Sowa 2014-10-04 11:18:33 +0000
  • 28ea8f3c3e added: to membuffer: 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) Tomasz Sowa 2013-11-28 22:21:10 +0000
  • 3cc5fd5e12 added: -I.. flag for Makefiles when compiling changed: in SpaceToJSON::PrintToken(): slash doesn't have to be escaped when serializing to JSON Tomasz Sowa 2013-10-15 23:53:57 +0000
  • aa394b1e4f dummy commit (testing a new repository) Tomasz Sowa 2013-05-07 05:13:08 +0000
  • 6e57002a90 fixed: in MemBuffer::MemBuffer(const MemBuffer<> & arg) we have to initialize some variables before calling the operator= Tomasz Sowa 2012-10-27 07:45:39 +0000
  • 1e48455942 added: to Space: bool HasValue(const wchar_t * name, const wchar_t * value); bool HasValue(const wchar_t * name, const std::wstring & value); bool HasValue(const std::wstring & name, const wchar_t * value); bool HasValue(const std::wstring & name, const std::wstring & value); useful when testing whether a value is in a list (or in simple table too) Tomasz Sowa 2012-10-17 19:55:16 +0000
  • 02abfe62fa changed: in SpaceParser: now we do not parse special characters when reading commentaries 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' Tomasz Sowa 2012-09-25 16:50:01 +0000
  • c6c079f8aa some commentaries Tomasz Sowa 2012-09-11 21:41:48 +0000
  • 5ad48470b6 added: to Space: std::wstring & FindAdd(const WTextStream & name); std::wstring & Add(const wchar_t * name, const WTextStream & value); std::wstring & Add(const std::wstring & name, const WTextStream & value); std::wstring & Add(const WTextStream & name, const WTextStream & value); Tomasz Sowa 2012-07-25 10:27:20 +0000
  • f8d5a962ed changed: rewritten the Serialize method in SpaceToJSON class Tomasz Sowa 2012-07-15 22:53:24 +0000
  • 2b88d011f6 updated: SpaceToJSON (not finished yet) Tomasz Sowa 2012-07-13 12:26:09 +0000
  • 2af6c28a54 added: JSONToSpaceParser -- a parser for JSON format to Space structure added: SpaceToJSON -- a serializer from Space structure to JSON (not finished yet) Tomasz Sowa 2012-07-12 15:01:15 +0000
  • 600d0fc34a added: some work in membuffer and textstreambase Tomasz Sowa 2012-07-10 16:53:26 +0000
  • d2d30cf640 added: convert (functions for converting) currently only int(long) -> string added: textstream (an efficient memory stream for creating strings -- it's using MemBuffer) Tomasz Sowa 2012-07-03 14:58:18 +0000
  • 64b05fe8d1 added: some work in MemBuffer (copy cctor and assignment operator) Tomasz Sowa 2012-07-02 20:27:31 +0000
  • 862dd01ea9 fixed: friend keyword should be used with a type name like 'class' Tomasz Sowa 2012-07-01 22:49:08 +0000
  • 4d968f5a85 added: some work in MemBuffer Tomasz Sowa 2012-07-01 22:38:27 +0000
  • 62f0624539 added: start working on MemBuffer (an efficient memory buffer) Tomasz Sowa 2012-07-01 00:39:41 +0000
  • be8e0d005c changed: Makefile Tomasz Sowa 2012-06-30 23:22:31 +0000
  • bff2ecb147 added: to Space: const std::wstring * GetValue(const std::wstring & name) const; std::wstring & Add(const wchar_t * name, size_t value); std::wstring & Add(const std::wstring & name, size_t value); Tomasz Sowa 2012-06-26 23:20:59 +0000
  • 39a1ea1007 added: to Date: template<class Stream> void SerializeMonthDay(Stream & out) const; template<class Stream> void SerializeHourMin(Stream & out) const; Tomasz Sowa 2012-06-22 23:35:16 +0000
  • d77db196ee added: to Date: bool ParseMonthDayTime(const CStringType * str, const CStringType ** str_after = 0); parsing: MM:DD HH[:MM[:SS]] Tomasz Sowa 2012-05-30 21:48:44 +0000
  • e775728f6b added: Date::ToTm() now sets tm_wday too Tomasz Sowa 2012-05-27 23:50:10 +0000
  • 03bac5721d added: Date(const char * str); Date(const wchar_t * str); Date(const std::string & str); Date(const std::wstring & str); Tomasz Sowa 2012-05-26 22:38:18 +0000
  • 27cde22774 fixed: two operators: Date::operator=(const CStringType) need 'return' statement Tomasz Sowa 2012-05-24 19:24:37 +0000
  • 0ffb2b155f added: some methods for parsing from a string Tomasz Sowa 2012-05-22 23:47:41 +0000
  • e25bc826e7 changed: Date::SerializeDay outputs the date in a form of YYYY-MM-DD (before was: YYYY.MM.DD) Tomasz Sowa 2012-05-13 21:49:06 +0000
  • 5d9ce6e093 changed: in SpaceParser: white characters can be escaped by '\ ' and in such a case this is not a delimiter (when reading single token) Tomasz Sowa 2012-05-12 18:20:39 +0000
  • 11ddf0f6d9 fixed: in Space serializer: we have to escape more characters fixed: in SpaceParser::ReadTokenSingle the delimiter can be only if the character was not escaped Tomasz Sowa 2012-05-12 15:54:20 +0000
  • e195145394 changed: now in SpaceParser 'split_single' and utf8 are default removed: some errors checking at the end of a line now we can have in the same line: value="option" value2="option2" Tomasz Sowa 2012-05-12 14:54:19 +0000
  • e620c8f95d changed: SpaceParser -- parser's engine has been rewritten now we can map all strings to all strings documentation in space.h need to be updated yet Tomasz Sowa 2012-05-10 21:16:19 +0000
  • c8cf401316 some cosmetic changes in date.h Tomasz Sowa 2012-05-05 15:13:45 +0000
  • 3280568594 added: Date structure -- represents year, month, day, hour, min, sec with O(1) algorithm for converting from time_t (seconds from Unix epoch) Tomasz Sowa 2012-05-05 15:08:04 +0000
  • 19da401bb0 changed Makefile dep Tomasz Sowa 2012-04-30 22:54:37 +0000
  • e15bae9fac changed: in space/spaceparser.cpp the correct include file (spaceparser.h now) Tomasz Sowa 2012-04-30 13:17:50 +0000
  • cd3a1b853f changed: class name: ConfParser -> SpaceParser Tomasz Sowa 2012-04-30 13:10:55 +0000
  • 02645de1f6 changed: directory name: confparser -> space Tomasz Sowa 2012-04-30 12:38:20 +0000
  • a2ed273090 added: to Space: void RemoveSpace(const wchar_t * name); void RemoveSpace(const std::wstring & name); Tomasz Sowa 2012-04-11 20:24:15 +0000
  • 0b66e6b807 added: to Space: std::wstring & FindAdd(const wchar_t * name); std::wstring & FindAdd(const std::wstring & name); Tomasz Sowa 2012-03-12 20:31:17 +0000
  • 0b97609811 added: Space::Remove(const wchar_t * name) Space::Remove(const std::wstring & name) Tomasz Sowa 2012-03-06 13:17:25 +0000
  • f29a7a41d4 fixed: win32 macros Tomasz Sowa 2012-02-15 07:57:44 +0000
  • 8b3c2904aa fixed: swprintf version for MS Visual Tomasz Sowa 2012-02-15 07:46:34 +0000
  • a233f8d4df added: to Space: void RemoveSpace(size_t child_index) Tomasz Sowa 2012-02-14 20:34:37 +0000
  • 29d179963e changed: in Space: methods Add() return a reference to the inserted value now (std::wstring &) Tomasz Sowa 2012-02-12 18:54:06 +0000
  • d0272485dc added: to Space: void Add(const wchar_t * name, bool value); void Add(const wchar_t * name, int value); void Add(const wchar_t * name, long value); Tomasz Sowa 2012-02-10 00:32:22 +0000
  • 04ca4692b3 added: to Space: 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 Tomasz Sowa 2012-01-16 10:16:55 +0000
  • d0ffdd336c added: namespace PT, global Makefile file Tomasz Sowa 2012-01-12 02:46:16 +0000
  • f2ba48a10e importing confparser to pikotools Tomasz Sowa 2012-01-12 00:24:08 +0000
  • 67e694219d creating directory /pikotools/trunk/confparser Tomasz Sowa 2012-01-12 00:23:29 +0000
  • 736e44bf47 moving mainparser to pikotools Tomasz Sowa 2012-01-11 11:22:30 +0000
  • 8c3d76ce13 moving utf8.cpp from ezc to pikotools Tomasz Sowa 2012-01-11 11:15:36 +0000
  • 8f9887d01a moving utf8.h from ezc to pikotools Tomasz Sowa 2012-01-11 11:15:20 +0000
  • a1481b1356 creating directory pikotools/trunk/utf8 Tomasz Sowa 2012-01-11 11:02:59 +0000
  • f24053b418 creating directory pikotools/trunk Tomasz Sowa 2012-01-11 11:02:02 +0000