File: icu_ext--1.5--1.6.sql

package info (click to toggle)
icu-ext 1.10.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 360 kB
  • sloc: ansic: 2,701; sql: 763; makefile: 22; sh: 2
file content (23 lines) | stat: -rw-r--r-- 753 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-- complain if script is sourced in psql, rather than via CREATE/ALTER EXTENSION
\echo Use "ALTER EXTENSION icu_ext UPDATE TO '1.6'" to load this file. \quit

CREATE OR REPLACE FUNCTION icu_normalize(
 string text,
 form text
) RETURNS text
AS 'MODULE_PATHNAME', 'icu_normalize'
LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

COMMENT ON FUNCTION icu_normalize(text,text)
IS 'Normalize the string into one of NFC, NFD, NFKC or NFKD Unicode forms';


CREATE OR REPLACE FUNCTION icu_is_normalized(
 string text,
 form text
) RETURNS bool
AS 'MODULE_PATHNAME', 'icu_is_normalized'
LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

COMMENT ON FUNCTION icu_is_normalized(text,text)
IS 'Test if the string is normalized in one of NFC, NFD, NFKC or NFKD Unicode forms';