1. 20 Mar, 2015 1 commit
    • Frank Zago's avatar
      Recognize long integers without the need for L extension · add43147
      Frank Zago authored
      A value is recognized as CONFIG_TYPE_INT if it's only numbers, and
      CONFIG_TYPE_INT64 if it's numbers followed by L or LL. However from a
      user point of view adding L or LL is confusing. Instead, if the
      integer is too big to fit in an int, return a CONFIG_TYPE_INT64. This
      also avoid silent truncation.
      add43147
  2. 19 Mar, 2015 2 commits
  3. 20 Sep, 2014 3 commits
  4. 01 Jun, 2014 1 commit
  5. 28 May, 2014 2 commits
  6. 27 May, 2014 1 commit
  7. 26 May, 2014 11 commits
  8. 07 May, 2014 1 commit
    • Yuri Dyachenko's avatar
      make libconfig exceptions public · ee75cfc0
      Yuri Dyachenko authored
      it's allow to generate libconfig exception in user code
      example:
      libconfig::Setting& obj = ...;
      if ( !obj.isGroup() )
          throw libconfig::SettingTypeException( obj, "TypeGroup expected" );
      ee75cfc0
  9. 06 Mar, 2014 1 commit
  10. 05 Mar, 2014 4 commits
    • Matt Renaud's avatar
      Added iterators to Setting sequences. · 6e0f1cd3
      Matt Renaud authored
      To address hyperrealm/libconfig#3, I have added a SettingIterator class
      and begin() and end() methods on Setting so that lists and arrays of
      Setting can be iterated through using C++ style iterators.
      
      There is an iterator as well as const_iterator defined for the class.
      6e0f1cd3
    • Matt Renaud's avatar
      Unified lookup interface for Config and Setting. · 1ff9b7f9
      Matt Renaud authored
      To address hyperrealm/libconfig#4, `Config::operator[](const char*)` and
      `Setting::lookup(const std::string& key)` have been added.
      
      Note: `operator[]` had to remain as `const char*` to avoid ambiguities
            in some situations.
      1ff9b7f9
    • Matt Renaud's avatar
      Removed cast from Setting to const char*. · 6af19564
      Matt Renaud authored
      To address hyperrealm/libconfig#1, the cast operator from Setting to
      const char* has been removed. As a result, lookupValue() taking a const
      char* has also been removed as it uses the cast operator.
      
      This change allows code that assigns directly to a std::string or a
      const char* to compile without errors. No change to existing code should
      be required.
      6af19564
    • Matt Renaud's avatar
      Added Setting constructor taking a std::string. · 91c09159
      Matt Renaud authored
      To address hyperrealm/libconfig#2, a constructor has been added to the
      header and source file.
      91c09159
  11. 04 Mar, 2014 5 commits