1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
$NetBSD: patch-ad,v 1.1 2004/02/29 11:10:36 jmmv Exp $
--- src/regexx.hh.orig 2001-03-13 15:42:21.000000000 +0100
+++ src/regexx.hh
@@ -29,10 +29,13 @@
#ifndef REGEXX_HH
#define REGEXX_HH
+#include <iostream>
#include <string>
#include <vector>
#include <split.hh>
+using namespace std;
+
namespace regexx {
/** Class to store atoms.
@@ -566,7 +569,7 @@ namespace regexx {
}
inline const std::string&
- Regexx::replacef(std::string (*_func)(const RegexxMatch&), int _flags = 0)
+ Regexx::replacef(std::string (*_func)(const RegexxMatch&), int _flags)
throw(CompileException)
{
exec(_flags&~nomatch);
@@ -580,7 +583,7 @@ namespace regexx {
inline const std::string&
Regexx::replacef(const std::string& _expr,
std::string (*_func)(const RegexxMatch&),
- int _flags = 0)
+ int _flags)
throw(CompileException)
{
expr(_expr);
@@ -590,7 +593,7 @@ namespace regexx {
inline const std::string&
Regexx::replacef(const std::string& _str, const std::string& _expr,
std::string (*_func)(const RegexxMatch&),
- int _flags = 0)
+ int _flags)
throw(CompileException)
{
str(_str);
|