projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f71f61
)
add string accessor for Regex
author
Duncan Mac-Vicar P
<dmacvicar@suse.de>
Tue, 3 Mar 2009 10:34:00 +0000
(11:34 +0100)
committer
Duncan Mac-Vicar P
<dmacvicar@suse.de>
Tue, 3 Mar 2009 10:34:00 +0000
(11:34 +0100)
zypp/base/Regex.h
patch
|
blob
|
history
diff --git
a/zypp/base/Regex.h
b/zypp/base/Regex.h
index
80f0ba1
..
a6fe0f6
100644
(file)
--- a/
zypp/base/Regex.h
+++ b/
zypp/base/Regex.h
@@
-72,6
+72,12
@@
namespace zypp
regex & operator=(const regex & rhs)
{ assign(rhs.m_str, rhs.m_flags); return *this; }
+ /**
+ * string representation of the regular expression
+ */
+ std::string asString() const
+ { return m_str; }
+
public:
/** Expert backdoor. Returns pointer to the compiled regex for direct use in regexec() */
regex_t * get()