From 2b60803357db480eb5214a758a54363d4172987e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Feb 2016 21:06:00 +0300 Subject: Use inline attribute in parameters parsing functions. --- src/utils/paramerers.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/utils/paramerers.cpp b/src/utils/paramerers.cpp index 418e15ab7..aa3ae350f 100644 --- a/src/utils/paramerers.cpp +++ b/src/utils/paramerers.cpp @@ -28,6 +28,8 @@ #include "debug.h" +static inline void addToken(StringVect &tokens, + std::string str) A_INLINE; static inline void addToken(StringVect &tokens, std::string str) { @@ -50,6 +52,9 @@ static inline void addToken(StringVect &tokens, tokens.push_back(item); } +static inline size_t findNextQuote(const std::string &str, + const char quote, + const size_t pos) A_INLINE; static inline size_t findNextQuote(const std::string &str, const char quote, const size_t pos) @@ -64,6 +69,9 @@ static inline size_t findNextQuote(const std::string &str, return idx; } +static inline size_t findNextSplit(const std::string &str, + const std::string &separator, + const char quote) A_INLINE; static inline size_t findNextSplit(const std::string &str, const std::string &separator, const char quote) -- cgit v1.2.3-70-g09d2