From a6e86d51a0e32cdc91f2902b0d6b483af884dcca Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 4 Feb 2019 19:50:16 +0100 Subject: Make APT::StringView public --- apt-pkg/contrib/strutl.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'apt-pkg/contrib/strutl.h') diff --git a/apt-pkg/contrib/strutl.h b/apt-pkg/contrib/strutl.h index ae0aaedf9..3853d5ba6 100644 --- a/apt-pkg/contrib/strutl.h +++ b/apt-pkg/contrib/strutl.h @@ -20,9 +20,7 @@ #include #include #include -#ifdef APT_PKG_EXPOSE_STRING_VIEW #include -#endif #include #include @@ -100,10 +98,7 @@ bool StrToNum(const char *Str,unsigned long &Res,unsigned Len,unsigned Base = 0) bool StrToNum(const char *Str,unsigned long long &Res,unsigned Len,unsigned Base = 0); bool Base256ToNum(const char *Str,unsigned long &Res,unsigned int Len); bool Base256ToNum(const char *Str,unsigned long long &Res,unsigned int Len); -bool Hex2Num(const std::string &Str,unsigned char *Num,unsigned int Length); -#ifdef APT_PKG_EXPOSE_STRING_VIEW -APT_HIDDEN bool Hex2Num(const APT::StringView Str,unsigned char *Num,unsigned int Length); -#endif +bool Hex2Num(const APT::StringView Str,unsigned char *Num,unsigned int Length); // input changing string split bool TokSplitString(char Tok,char *Input,char **List, unsigned long ListMax); -- cgit v1.2.3