nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'alexamdre/various-fixes' into next
[nit.git]
/
tests
/
sav
/
test_string_search.sav
1
string: "A simple example" ; pattern: " "
2
searches:
3
* [1, 2[ = " "
4
* [8, 9[ = " "
5
splits:
6
* [0, 1[ = "A"
7
* [2, 8[ = "simple"
8
* [9, 16[ = "example"
9
join: A, simple, example
10
string: "A simple example" ; pattern: "ple"
11
searches:
12
* [5, 8[ = "ple"
13
* [13, 16[ = "ple"
14
splits:
15
* [0, 5[ = "A sim"
16
* [8, 13[ = " exam"
17
* [16, 16[ = ""
18
join: A sim, exam,
19
string: "A simple example" ; pattern: "ple"
20
searches:
21
* [5, 8[ = "ple"
22
* [13, 16[ = "ple"
23
splits:
24
* [0, 5[ = "A sim"
25
* [8, 13[ = " exam"
26
* [16, 16[ = ""
27
join: A sim, exam,