File: 04-function-trim.txt

package info (click to toggle)
libixion 0.19.0-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,488 kB
  • sloc: cpp: 20,960; sh: 4,562; makefile: 474; python: 297
file content (21 lines) | stat: -rw-r--r-- 334 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
21
%mode init
A1=TRIM("one two three")
A2=TRIM(" one two  three")
A3=TRIM("  one  two three  ")
A4=TRIM("A")
A5=TRIM("A B")
A6=TRIM("")
A7=TRIM(12345)
B1@    日本    韓国  中国
B2=TRIM(B1)
%calc
%mode result
A1="one two three"
A2="one two three"
A3="one two three"
A4="A"
A5="A B"
A6=""
A7="12345"
B2="日本 韓国 中国"
%check