/*
- * Copyright (C) 2015, 2016 ,2017 "IoT.bzh"
+ * Copyright (C) 2015, 2016 ,2017, 2018, 2019 "IoT\.bzh"
* Author "Loïc Collignon" <loic.collignon@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
#include "ini-config.hpp"
-bool starts_with(const std::string& text, const std::string& token)
+bool starts_with(const std::string& text, const std::string& token)
{
if(text.length() < token.length()) return false;
return (text.compare(0, token.length(), token) == 0);
{
map ret;
std::string key;
-
+
std::string prefix = section + '/';
for(auto i = config_.begin();
i != config_.end();
}
}
return line_type::ignore;
-}
\ No newline at end of file
+}