diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-05 09:10:54 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-05 09:10:54 +0800 |
commit | 8f6656f1b8f1e1897189af2bf149c907685f8c2a (patch) | |
tree | 9a1a1e7640279963cffb4df8219298cedd47bc75 /InterfaceHandler.h | |
parent | dedd1a312ba51c4ed8f9f801628dc23f1b09216d (diff) | |
download | dexon-solidity-8f6656f1b8f1e1897189af2bf149c907685f8c2a.tar.gz dexon-solidity-8f6656f1b8f1e1897189af2bf149c907685f8c2a.tar.zst dexon-solidity-8f6656f1b8f1e1897189af2bf149c907685f8c2a.zip |
Using iterators in Natspec comment parsing
- Used iterators in the entirety of the InterfaceHandler natspec comment
parsing pipeline
- Fixed issue where @param continuing in new line would not get a space
Diffstat (limited to 'InterfaceHandler.h')
-rw-r--r-- | InterfaceHandler.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/InterfaceHandler.h b/InterfaceHandler.h index e9e3a83c..7a5ee66d 100644 --- a/InterfaceHandler.h +++ b/InterfaceHandler.h @@ -81,12 +81,20 @@ private: void resetUser(); void resetDev(); - size_t parseDocTagLine(std::string const& _string, std::string& _tagString, size_t _pos, enum DocTagType _tagType); - size_t parseDocTagParam(std::string const& _string, size_t _startPos); - size_t appendDocTagParam(std::string const& _string, size_t _startPos); - void parseDocString(std::string const& _string, size_t _startPos = 0); - size_t appendDocTag(std::string const& _string, size_t _startPos); - size_t parseDocTag(std::string const& _string, std::string const& _tag, size_t _pos); + std::string::const_iterator parseDocTagLine(std::string::const_iterator _pos, + std::string::const_iterator _end, + std::string& _tagString, + enum DocTagType _tagType); + std::string::const_iterator parseDocTagParam(std::string::const_iterator _pos, + std::string::const_iterator _end); + std::string::const_iterator appendDocTagParam(std::string::const_iterator _pos, + std::string::const_iterator _end); + void parseDocString(std::string const& _string); + std::string::const_iterator appendDocTag(std::string::const_iterator _pos, + std::string::const_iterator _end); + std::string::const_iterator parseDocTag(std::string::const_iterator _pos, + std::string::const_iterator _end, + std::string const& _tag); Json::StyledWriter m_writer; |