summaryrefslogtreecommitdiffstats
path: root/intl/unicharutil/nsIUnicodeNormalizer.idl
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /intl/unicharutil/nsIUnicodeNormalizer.idl
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'intl/unicharutil/nsIUnicodeNormalizer.idl')
-rw-r--r--intl/unicharutil/nsIUnicodeNormalizer.idl33
1 files changed, 33 insertions, 0 deletions
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);
+};