-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8ef226
commit 6696c54
Showing
48 changed files
with
2,255 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
boxwood extension is available |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php if (!extension_loaded("boxwood")) print "skip"; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
$r = boxwood_new(); | ||
var_dump($r); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
resource(%d) of type (Boxwood) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php if (!extension_loaded("boxwood")) print "skip"; ?> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,6 @@ | ||
--TEST-- | ||
Add a word | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("boxwood")) print "skip"; ?> | ||
--FILE-- | ||
<?php | ||
$r = boxwood_new(); | ||
$a = boxwood_add_text($r, "monkey"); | ||
$b = boxwood_add_text($r, "salad"); | ||
print "$a,$b"; | ||
?> | ||
--EXPECT-- | ||
6,5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6,5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php if (!extension_loaded("boxwood")) print "skip"; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
--TEST-- | ||
Do replacement | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("boxwood")) print "skip"; ?> | ||
--FILE-- | ||
<?php | ||
$r = boxwood_new(); | ||
$a = boxwood_add_text($r, "monkey"); | ||
$b = boxwood_add_text($r, "salad"); | ||
$c = boxwood_replace_text($r, "My monkey ate some salad today.","*"); | ||
print $c; | ||
?> | ||
--EXPECT-- | ||
My m***** ate some s**** today. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
My m***** ate some s**** today. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php if (!extension_loaded("boxwood")) print "skip"; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
--TEST-- | ||
Do case-insensitive replacement | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("boxwood")) print "skip"; ?> | ||
--FILE-- | ||
<?php | ||
$r = boxwood_new(false); | ||
$a = boxwood_add_text($r, "Monkey"); | ||
$b = boxwood_add_text($r, "salad"); | ||
$c = boxwood_replace_text($r, "My monkey ate some Salad today.","!"); | ||
print $c; | ||
?> | ||
--EXPECT-- | ||
My m!!!!! ate some S!!!! today. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
My m!!!!! ate some S!!!! today. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php if (!extension_loaded("boxwood")) print "skip"; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
--TEST-- | ||
Do replacement with explicit no-case-insensitivity argument | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("boxwood")) print "skip"; ?> | ||
--FILE-- | ||
<?php | ||
$r = boxwood_new(false); | ||
$a = boxwood_add_text($r, "monkey"); | ||
$b = boxwood_add_text($r, "salad"); | ||
$c = boxwood_replace_text($r, "My monkey ate some salad today.","~"); | ||
print $c; | ||
?> | ||
--EXPECT-- | ||
My m~~~~~ ate some s~~~~ today. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
My m~~~~~ ate some s~~~~ today. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php if (!extension_loaded("boxwood")) print "skip"; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
My m^^^^^ ate some s^^^^ today and also some Ś^^^^ and śäłäđ. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php if (!extension_loaded("boxwood")) print "skip"; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
My m***** ate some s**** today and also some Ś**** and ś****. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php if (!extension_loaded("boxwood")) print "skip"; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
a m**t m*****s m**o eat m********s | ||
a m**t m*****s m**o eat m********s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php if (!extension_loaded("boxwood")) print "skip"; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
a-mont-monkeys-mono-eat-monotremes | ||
a-m**t-m*****s-m**o-eat-m********s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php if (!extension_loaded("boxwood")) print "skip"; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
aaa x** bbb | ||
aaa x** bbb | ||
|
||
aaax** | ||
aaaxxx | ||
|
||
x**bbb | ||
xxxbbb | ||
|
||
aaax**bbb | ||
aaaxxxbbb | ||
|
||
aaa(x**)bbb | ||
aaa(x**)bbb | ||
|
||
x** bbb | ||
x** bbb | ||
|
||
aaa x** | ||
aaa x** | ||
|
||
aaa?x**!bbb | ||
aaa?x**!bbb | ||
|
||
ax** | ||
axxx | ||
|
||
x**b | ||
xxxb | ||
|
||
x** | ||
x** | ||
|
||
(x** | ||
(x** | ||
|
||
x**) | ||
x**) | ||
|
||
aaa%ax** | ||
aaa%ax** | ||
|
||
aaa%ax** | ||
aaa%axxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php if (!extension_loaded("boxwood")) echo "skip"; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
aaax** | ||
aaaxxx | ||
aaax** | ||
aaaxxx | ||
|
||
aaa x** bbb | ||
aaa x** bbb | ||
aaa x** bbb | ||
aaa xxx bbb | ||
|
||
aaa(x**)bbb | ||
aaa(x**)bbb | ||
aaa(x**)bbb | ||
aaa(x**)bbb | ||
|
||
x** | ||
x** | ||
x** | ||
x** | ||
|
||
aaa-x**-bbb | ||
aaa-x**-bbb | ||
aaa-x**-bbb | ||
aaa-xxx-bbb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php if (!extension_loaded("boxwood")) echo "skip"; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
$r = boxwood_new(); | ||
boxwood_add_text($r, "ɹǝqɯǝɯ"); | ||
|
||
$tests = array( | ||
'ǝɔuǝıɹǝdxǝ ɹǝqɯǝɯ ɐƃǝɯo', | ||
'ǝɔuǝıɹǝdxǝɹǝqɯǝɯ ɐƃǝɯo', | ||
'ǝɔuǝıɹǝdxǝ ɹǝqɯǝɯɐƃǝɯo', | ||
'ǝɔuǝıɹǝdxǝɹǝqɯǝɯɐƃǝɯo', | ||
'ǝɔuǝıɹǝdxǝ(ɹǝqɯǝɯ)ɐƃǝɯo', | ||
'ɹǝqɯǝɯ ɐƃǝɯo', | ||
'ǝɔuǝıɹǝdxǝ ɹǝqɯǝɯ', | ||
); | ||
|
||
foreach ($tests as $test) { | ||
echo boxwood_replace_text($r, $test, '*', false), "\n"; | ||
echo boxwood_replace_text($r, $test, '*', true), "\n"; | ||
echo "\n"; | ||
} | ||
?> |
Oops, something went wrong.