summaryrefslogtreecommitdiffstats
path: root/intl/hyphenation/glue/nsHyphenator.h
diff options
context:
space:
mode:
Diffstat (limited to 'intl/hyphenation/glue/nsHyphenator.h')
-rw-r--r--intl/hyphenation/glue/nsHyphenator.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/intl/hyphenation/glue/nsHyphenator.h b/intl/hyphenation/glue/nsHyphenator.h
new file mode 100644
index 000000000..96975d253
--- /dev/null
+++ b/intl/hyphenation/glue/nsHyphenator.h
@@ -0,0 +1,33 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* 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/. */
+
+#ifndef nsHyphenator_h__
+#define nsHyphenator_h__
+
+#include "nsCOMPtr.h"
+#include "nsString.h"
+#include "nsTArray.h"
+
+class nsIURI;
+
+class nsHyphenator
+{
+public:
+ explicit nsHyphenator(nsIURI *aURI);
+
+ NS_INLINE_DECL_REFCOUNTING(nsHyphenator)
+
+ bool IsValid();
+
+ nsresult Hyphenate(const nsAString& aText, nsTArray<bool>& aHyphens);
+
+private:
+ ~nsHyphenator();
+
+protected:
+ void *mDict;
+};
+
+#endif // nsHyphenator_h__