aboutsummaryrefslogtreecommitdiffstats
path: root/testcases-quote
blob: 272261b0c34f4d5ed404d58a9fba1bc411102039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
1:
$cppawk '
#include <quote.h>

BEGIN {
  print q("")
  print q("abc")
  print q("abc\\def")
  print q("'\''foo'\''")
  print q("\"foo\"")
  print q("\"fo'\''o\"")
  print q("abc\ndef")
  print q("abc*def")
  print q("abc?def")
  print q("abc`def")
  print q("abc`de'\''f")
  print q("a b c")
  print q("a\tb\tc")
  print q("~bob/foo")
}'
:

abc
'abc\def'
"'foo'"
'"foo"'
"\"fo'o\""
"abc
def"
'abc*def'
'abc?def'
'abc`def'
'abc`de'\''f'
"a b c"
"a	b	c"
'~bob/foo'