intl/hyphenation/nsHyphenator.h
author Carsten "Tomcat" Book <cbook@mozilla.com>
Tue, 16 Sep 2014 07:07:55 +0200
changeset 228662 bda9c2c58b8886cc8954e733a8af92a8a48ef7d6
parent 221769 5fb5adcc3835685c8ec779c35301a3f0251b1275
permissions -rw-r--r--
Merge m-c to fx-team

/* -*- 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, FallibleTArray<bool>& aHyphens);

private:
  ~nsHyphenator();

protected:
  void                      *mDict;
};

#endif // nsHyphenator_h__