summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/utils.hh
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2019-09-11 11:46:51 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-09-11 17:15:56 -0300
commit993b337e6798c5641b1272087a56e6c1c62a4eb5 (patch)
treec6c5939d3c8dfdba85e585fefa3355429b8d4b9d /src/bin/eolian_mono/eolian/mono/utils.hh
parent5d5128b22620f0e75c0ff5514e93551e1bd84325 (diff)
eolian_mono: fix documentation warning by using "<" and ">"
Summary: If type A: list<B>; is written in eo, then documentation warning occurs because list<B> is written in the documentation without string conversion. To fix the warning, "<" and ">" are converted into "&lt;" and "&gt;". Reviewers: lauromoura Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9891
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/utils.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/utils.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/utils.hh b/src/bin/eolian_mono/eolian/mono/utils.hh
index 392cb00f11..9e583df4f9 100644
--- a/src/bin/eolian_mono/eolian/mono/utils.hh
+++ b/src/bin/eolian_mono/eolian/mono/utils.hh
@@ -88,6 +88,20 @@ namespace eolian_mono { namespace utils {
88 else 88 else
89 return false; 89 return false;
90 } 90 }
91
92 inline std::string replace_all(std::string s, std::string target, std::string replace)
93 {
94 size_t pos = s.find(target);
95
96 while (pos != std::string::npos)
97 {
98 s.replace(pos, target.length(), replace);
99 pos += replace.length();
100 pos = s.find(target, pos);
101 }
102
103 return s;
104 }
91} } 105} }
92 106
93#endif 107#endif