diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-11 21:06:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-11 21:06:00 +0300 |
commit | 2b60803357db480eb5214a758a54363d4172987e (patch) | |
tree | 81b7bc94cf923772b10c6d8a851e25567a876fad /src/utils/paramerers.cpp | |
parent | 0f7466e2aa5444957a7b25e72c2835734c42522c (diff) | |
download | manaverse-2b60803357db480eb5214a758a54363d4172987e.tar.gz manaverse-2b60803357db480eb5214a758a54363d4172987e.tar.bz2 manaverse-2b60803357db480eb5214a758a54363d4172987e.tar.xz manaverse-2b60803357db480eb5214a758a54363d4172987e.zip |
Use inline attribute in parameters parsing functions.
Diffstat (limited to 'src/utils/paramerers.cpp')
-rw-r--r-- | src/utils/paramerers.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -29,6 +29,8 @@ #include "debug.h" static inline void addToken(StringVect &tokens, + std::string str) A_INLINE; +static inline void addToken(StringVect &tokens, std::string str) { std::string item = trim(str); @@ -52,6 +54,9 @@ static inline void addToken(StringVect &tokens, 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) { size_t idx = str.find(quote, pos); @@ -66,6 +71,9 @@ static inline size_t findNextQuote(const std::string &str, 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) { size_t pos = 0; |