From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- intl/unicharutil/nsIUnicodeNormalizer.idl | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 intl/unicharutil/nsIUnicodeNormalizer.idl (limited to 'intl/unicharutil/nsIUnicodeNormalizer.idl') diff --git a/intl/unicharutil/nsIUnicodeNormalizer.idl b/intl/unicharutil/nsIUnicodeNormalizer.idl new file mode 100644 index 000000000..4e88a6c2e --- /dev/null +++ b/intl/unicharutil/nsIUnicodeNormalizer.idl @@ -0,0 +1,33 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "nsISupports.idl" + +%{C++ +#define NS_UNICODE_NORMALIZER_CID { 0xa665e49a, 0xf3e6, 0x4fed, { 0x9f, 0x31, 0xf7, 0xc5, 0x68, 0xa2, 0x98, 0x99 } } +#define NS_UNICODE_NORMALIZER_CONTRACTID "@mozilla.org/intl/unicodenormalizer;1" +%} + +[scriptable, uuid(B43A461F-1BCF-4329-820B-66E48C979E14)] +interface nsIUnicodeNormalizer : nsISupports +{ + /** + * Normalize Unicode (NFD, NFC, NFKD, NFKC). + * + * NFD: Canonical Decomposition + * NFC: Canonical Decomposition, followed by Canonical Composition + * NFKD: Compatibility Decomposition + * NFKC: Compatibility Decomposition, followed by Canonical Composition + * Reference: Unicode Standard, TR15, Unicode Normalization Forms + * + * @param aSrc [IN] nsAString which contains an input UTF-16 string. + * @param aDest [OUT] A pointer to an output buffer provided by a callee. + * @return NS_OK for success, + */ + void NormalizeUnicodeNFD(in AString aSrc, out AString aDest); + void NormalizeUnicodeNFC(in AString aSrc, out AString aDest); + void NormalizeUnicodeNFKD(in AString aSrc, out AString aDest); + void NormalizeUnicodeNFKC(in AString aSrc, out AString aDest); +}; -- cgit v1.2.3