Skip to content

Commit a2f15a6

Browse files
committed
Inlined all the header functions.
1 parent be297ce commit a2f15a6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

com.ibm.streamsx.regex/com.ibm.streamsx.regex.re2/RegexMatch/RegexMatch.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ RegexMatch operator has three custom output functions:
9595
</inputPorts>
9696
<outputPorts>
9797
<outputPortSet>
98-
<description>The RegexMatch operator is configurable with one output port. The output port is mutating and their punctuation mode is Preserving.</description>
98+
<description>The RegexMatch operator is configurable with one output port. The output port is mutating and its punctuation mode is Preserving.</description>
9999
<expressionMode>Expression</expressionMode>
100100
<autoAssignment>true</autoAssignment>
101101
<completeAssignment>true</completeAssignment>

com.ibm.streamsx.regex/impl/include/Regex.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,27 @@ using namespace std;
2020

2121
namespace regex {
2222

23-
RE2::Options& getRE2Options(int maxmem){
23+
inline RE2::Options& getRE2Options(int maxmem){
2424
static RE2::Options options;
2525
options.set_log_errors(false);
2626
options.set_max_mem(maxmem);
2727
return options;
2828
}
2929

30-
RE2& getRE2(const string & pattern, int maxmem){
30+
inline RE2& getRE2(const string & pattern, int maxmem){
3131
static RE2 regex(pattern, getRE2Options(maxmem));
3232
return regex;
3333
}
3434

35-
bool regexFullMatch(const string & str, const string & pattern="", int maxmem=1000000){
35+
inline bool regexFullMatch(const string & str, const string & pattern="", int maxmem=1000000){
3636
return RE2::FullMatch(str, getRE2(pattern, maxmem)) == 1;
3737
}
3838

39-
bool regexPartialMatch(const string & str, const string & pattern="", int maxmem=1000000){
39+
inline bool regexPartialMatch(const string & str, const string & pattern="", int maxmem=1000000){
4040
return RE2::PartialMatch(str, getRE2(pattern, maxmem)) == 1;
4141
}
4242

43-
bool regexSimpleMatch(const string & str, const string & pattern){
43+
inline bool regexSimpleMatch(const string & str, const string & pattern){
4444
return RE2::PartialMatch(str, pattern) == 1;
4545
}
4646
}

0 commit comments

Comments
 (0)