From a98ae92787bb7ebb4857facc7b00af450160df1b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 3 Jun 2016 00:15:54 +0100 Subject: Support character range input to dependency scanner --- gentoobrowse-api/service/depend.cpp | 8 ++++++++ gentoobrowse-api/service/depend.h | 1 + 2 files changed, 9 insertions(+) diff --git a/gentoobrowse-api/service/depend.cpp b/gentoobrowse-api/service/depend.cpp index 3d325d7..0a0dd4d 100644 --- a/gentoobrowse-api/service/depend.cpp +++ b/gentoobrowse-api/service/depend.cpp @@ -82,6 +82,14 @@ namespace Portage { d.extract(s.c_str(), s.length()); return d.ds; } + + std::vector + Depend::parse(const char * begin, const char * end) + { + Depend d; + d.extract(begin, end - begin); + return d.ds; + } } } diff --git a/gentoobrowse-api/service/depend.h b/gentoobrowse-api/service/depend.h index 487c6da..c384a11 100644 --- a/gentoobrowse-api/service/depend.h +++ b/gentoobrowse-api/service/depend.h @@ -15,6 +15,7 @@ namespace Portage { public: static std::vector parse(const std::string &); + static std::vector parse(const char *, const char *); std::vector ds; }; } -- cgit v1.2.3