Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
low-can-cb: improve readability
[apps/agl-service-can-low-level.git]
/
libs
/
ini-config
/
ini-config.cpp
diff --git
a/libs/ini-config/ini-config.cpp
b/libs/ini-config/ini-config.cpp
index
ef3ab25
..
9ce0fdc
100644
(file)
--- a/
libs/ini-config/ini-config.cpp
+++ b/
libs/ini-config/ini-config.cpp
@@
-1,5
+1,5
@@
/*
/*
- * 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");
* Author "Loïc Collignon" <loic.collignon@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@
-17,7
+17,7
@@
#include "ini-config.hpp"
#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);
{
if(text.length() < token.length()) return false;
return (text.compare(0, token.length(), token) == 0);
@@
-62,7
+62,7
@@
ini_config::map ini_config::get_keys(const std::string& section, bool wo_prefix)
{
map ret;
std::string key;
{
map ret;
std::string key;
-
+
std::string prefix = section + '/';
for(auto i = config_.begin();
i != config_.end();
std::string prefix = section + '/';
for(auto i = config_.begin();
i != config_.end();
@@
-97,4
+97,4
@@
ini_config::line_type ini_config::qualify(std::string& line)
}
}
return line_type::ignore;
}
}
return line_type::ignore;
-}
\ No newline at end of file
+}