{"id":26100549,"url":"https://github.com/catisnotfound/ini-parser","last_synced_at":"2025-10-14T19:07:48.959Z","repository":{"id":281488674,"uuid":"944996410","full_name":"CatIsNotFound/INI-Parser","owner":"CatIsNotFound","description":"A lightweight C++ INI file parser with basic key-value operations and array extension support.","archived":false,"fork":false,"pushed_at":"2025-03-20T08:21:07.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-14T19:04:38.424Z","etag":null,"topics":["cpp","exception-handling","ini-parser","key-value-store","lightweight-library","mit-license"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CatIsNotFound.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-08T12:15:04.000Z","updated_at":"2025-03-20T08:22:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"16cedf8c-68a3-4b05-97dc-f407551ec626","html_url":"https://github.com/CatIsNotFound/INI-Parser","commit_stats":null,"previous_names":["catisnotfound/ini-parser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CatIsNotFound/INI-Parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatIsNotFound%2FINI-Parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatIsNotFound%2FINI-Parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatIsNotFound%2FINI-Parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatIsNotFound%2FINI-Parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CatIsNotFound","download_url":"https://codeload.github.com/CatIsNotFound/INI-Parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatIsNotFound%2FINI-Parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020642,"owners_count":26086895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","exception-handling","ini-parser","key-value-store","lightweight-library","mit-license"],"created_at":"2025-03-09T17:39:22.944Z","updated_at":"2025-10-14T19:07:48.954Z","avatar_url":"https://github.com/CatIsNotFound.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# INI-Parser\n\n[简体中文](README_CN.md)\n\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/CatIsNotFound/INI-Parser/blob/main/LICENSE)\n\nA lightweight C++ INI file parser with basic key-value operations and array extension support.\n\n## Features\n\n- **Core Parsing**  \n  ✅ Read/Write/Delete sections and key-value pairs  \n  ✅ Automatic trimming of leading/trailing spaces  \n  ✅ Exception handling (file load failure, duplicate keys, etc.)  \n  ✅ UTF-8 encoding support (no auto line break conversion)\n\n- **Extended Features (IniParserX)**  \n  🚀 Array-type keys support (e.g., `key[] = value1`)  \n  🚀 Experimental nested section inheritance  \n  🚀 Array length queries and index-based access\n\n## Quick Start\n\n### Installation\nAdd `INI-Parser.h` directly to your project's header directory.\n\n### Basic Usage\n```cpp\n#include \"INI-Parser.h\"\n\n// Load config file\nIniParser parser(\"config.ini\");\n\n// Read value\nstd::string\u0026 version = parser.value(\"General/version\");\n\n// Modify value\nparser.value(\"Database/port\") = \"3306\";\n\n// Save changes\nparser.save_ini_file();\n```\n\n### Array Operations\n```cpp\n#include \"INI-Parser.h\"\n\n// Use extended parser\nIniParserX parser_x(\"data.ini\");\n\n// Add an array\nparser_x.add_array(\"Log\", \"files\", {\"app.log\", \"error.log\", \"debug.log\"});\n\n// Get array length\nsize_t count = parser_x.size_of_array(\"Log/files\");\n\n// Access array elements\nstd::string log_file = parser_x.value_of_array(\"Log\", \"files\", 0);\n```\n\n## Exceptions\n\n| Exception Type       | Trigger Scenario                  |\n|----------------------|-----------------------------------|\n| `FileLoadedError`    | File cannot be opened or lacks permissions |\n| `KeyNotFound`        | Accessing non-existent key/section |\n| `KeyAlreadyExist`    | Adding a duplicate key           |\n| `KeyIsArray`         | Accessing an array as a regular key |\n| `KeyNotArray`        | Accessing a regular key as an array |\n\n## Contribution \u0026 License\n- **Repository**: [https://github.com/CatIsNotFound/INI-Parser](https://github.com/CatIsNotFound/INI-Parser)\n- **License**: MIT License\n- Issues and Pull Requests are welcome!\n\n---\n\n🐱 Maintained by [CatIsNotFound](mailto:liaoxinkai0408@outlook.com) | Last updated: March 9, 2025\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatisnotfound%2Fini-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatisnotfound%2Fini-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatisnotfound%2Fini-parser/lists"}