Skip to content

Commit 956c941

Browse files
committed
Added SPLDOC.
1 parent f791dff commit 956c941

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

samples/RegexMatchFusedSample/sample/RegexMatchFusedSample.spl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ namespace sample;
22

33
use com.ibm.streamsx.regex.re2::RegexMatchFused;
44

5+
/**
6+
* Run functional test.
7+
*
8+
* * Functional test - Custom calls RegexMatchFused twice with different patterns.
9+
*
10+
* The output:
11+
* * The result is: true
12+
* * The result is: false
13+
*/
514
composite RegexMatchFusedSample {
615
graph
716
(stream<rstring search, boolean result, rstring pattern> Custom_1_out0)as

samples/RegexMatchNFSample/sample/RegexMatchNFSample.spl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@ namespace sample;
22

33
use com.ibm.streamsx.regex.re2::*;
44

5+
/**
6+
* Run functional tests using native functions.
7+
*
8+
* * Functional tests for simple, partial and full matches.
9+
*
10+
* The output:
11+
* * regexSimpleMatch: 'Hello world' matches '^Hello': true
12+
* * regexSimpleMatch: 'Hello world' matches 'Hello$': false
13+
* * regexPartialMatch: 'Hello world' matches '^Hello': true
14+
* * regexPartialMatch: 'Hello world' matches '^Hello': true
15+
* * regexPartialMatch: 'Hello world' matches 'Hello$': true
16+
* * regexFullMatch: 'Hello world' matches '^Hello': false
17+
* * regexFullMatch: 'Hello world' matches '^Hello world': false
18+
*/
519
composite RegexMatchNFSample {
620
graph
721
()as Custom_1 = Custom(){

0 commit comments

Comments
 (0)