diff options
Diffstat (limited to 'test/04-function-replace.txt')
-rw-r--r-- | test/04-function-replace.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/04-function-replace.txt b/test/04-function-replace.txt new file mode 100644 index 0000000..d2225f5 --- /dev/null +++ b/test/04-function-replace.txt @@ -0,0 +1,20 @@ +%mode init +A1@My dog is not big. +A2=REPLACE(A1,4,3,"elephant") +B1@家の犬は大きくない。 +B2=REPLACE(B1,3,1,"子猫") +B3=REPLACE(B1,100,100,"でもうるさい。") +B4=REPLACE(B1,1,0,"我が") +B5=REPLACE(B1,-1,0,"foo") +B6=REPLACE(B1,1,-1,"foo") +B7=REPLACE(B1,FIND("犬",B1),1,"倉庫") +%calc +%mode result +A2="My elephant is not big." +B2="家の子猫は大きくない。" +B3="家の犬は大きくない。でもうるさい。" +B4="我が家の犬は大きくない。" +B5=#VALUE! +B6=#VALUE! +B7="家の倉庫は大きくない。" +%check |