File: 04-function-replace.txt

package info (click to toggle)
libixion 0.20.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,472 kB
  • sloc: cpp: 21,273; sh: 4,561; makefile: 463; python: 297
file content (20 lines) | stat: -rw-r--r-- 547 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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