File: unicode.out

package info (click to toggle)
pgpcre 0.20190509-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 172 kB
  • sloc: ansic: 261; sql: 181; makefile: 19; sh: 1
file content (27 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (4)
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
-- check that it counts characters, not bytes
SELECT 'ätsch' =~ '^.....$';
 ?column? 
----------
 t
(1 row)

SELECT 'ätsch' =~ '^......$';
 ?column? 
----------
 f
(1 row)

-- check Unicode properties
SELECT 'ätsch' =~ '^\w+$';
 ?column? 
----------
 t
(1 row)

-- check Unicode in pattern
SELECT 'ätsch' =~ '^ätsch$';
 ?column? 
----------
 t
(1 row)