X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=zypp%2Fbase%2FString.h;h=bb59e9315a424223477f9d2915a44c0ae2b25098;hb=48046fb4ac6b1d63d5031ddc51b9dab8c6b6fd8a;hp=acff23a7c28b4167938af94f9630cc012943ec3f;hpb=63cf187f9e87bed304d125f4ca504be0f273ac2b;p=platform%2Fupstream%2Flibzypp.git diff --git a/zypp/base/String.h b/zypp/base/String.h index acff23a..bb59e93 100644 --- a/zypp/base/String.h +++ b/zypp/base/String.h @@ -917,6 +917,15 @@ namespace zypp str_r += escape( next_r, sep_r ); } + /** Return \a str_r with '\'-escaped chars occurring in \a special_r (and '\'). */ + std::string bEscape( std::string str_r, const C_Str & special_r ); + + /** Escape plain STRING \a str_r for use in a regex (not anchored by "^" or "$"). */ + std::string rxEscapeStr( std::string str_r ); + + /** Escape GLOB \a str_r for use in a regex (not anchored by "^" or "$"). */ + std::string rxEscapeGlob( std::string str_r ); + //! \todo unsecape() //@}