[zypp-commit] r9562 - in /trunk/libzypp/zypp/base: Regex.cc Regex.h
Author: jkupec
Date: Sat Apr 12 00:00:55 2008
New Revision: 9562
URL: http://svn.opensuse.org/viewcvs/zypp?rev=9562&view=rev
Log:
- operator= and copy c-tor added
- regex_t * get() added for direct use in regexec()
Modified:
trunk/libzypp/zypp/base/Regex.cc
trunk/libzypp/zypp/base/Regex.h
Modified: trunk/libzypp/zypp/base/Regex.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/base/Regex.cc?rev=9562&r1=9561&r2=9562&view=diff
==============================================================================
--- trunk/libzypp/zypp/base/Regex.cc (original)
+++ trunk/libzypp/zypp/base/Regex.cc Sat Apr 12 00:00:55 2008
@@ -28,6 +28,8 @@
void regex::assign(const std::string& str,int flags)
{
m_valid = true;
+ m_str = str;
+ m_flags = flags;
int err;
char errbuff[100];
if (!(flags & normal)) {
Modified: trunk/libzypp/zypp/base/Regex.h
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/base/Regex.h?rev=9562&r1=9561&r2=9562&view=diff
==============================================================================
--- trunk/libzypp/zypp/base/Regex.h (original)
+++ trunk/libzypp/zypp/base/Regex.h Sat Apr 12 00:00:55 2008
@@ -12,9 +12,7 @@
#ifndef ZYPP_BASE_REGEX_H
#define ZYPP_BASE_REGEX_H
-#include <iosfwd>
#include <string>
-
#include
participants (1)
-
jkupec@svn.opensuse.org