libzypp 17.38.6
modalias.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8----------------------------------------------------------------------*/
9#include "modalias.h"
10
12#include <zypp/ng/idstring.h>
13
15
17 {
18 if ( !_query )
19 return false;
20
21 //@TODO this will use the target modalias implementation
22
23 // modalias strings in capability may be hexencoded because rpm does not allow
24 // ',', ' ' or other special chars.
25 std::string decoded = zypp::str::hexdecode( IdString(value).asString() );
26 return _query( decoded );
27 }
28
29}
bool isSatisfied(detail::IdType value) const override
Check if a specific value satisfies this namespace condition.
Definition modalias.cc:16
std::string hexdecode(const C_Str &str_r)
Decode hexencoded XX sequences.
Definition String.cc:148
std::string asString(const Patch::Category &obj)
relates: Patch::Category string representation.
Definition Patch.cc:122
zypp::sat::detail::IdType IdType
zypp::IdString IdString
Definition idstring.h:16