2013-03-01 13:41:30 +00:00
|
|
|
/* -*- 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/. */
|
2011-05-04 11:29:45 +00:00
|
|
|
|
|
|
|
#ifndef nsHyphenator_h__
|
|
|
|
#define nsHyphenator_h__
|
|
|
|
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsTArray.h"
|
|
|
|
|
2011-10-06 15:06:32 +00:00
|
|
|
class nsIURI;
|
2011-05-04 11:29:45 +00:00
|
|
|
|
|
|
|
class nsHyphenator
|
|
|
|
{
|
|
|
|
public:
|
2014-08-18 13:53:43 +00:00
|
|
|
explicit nsHyphenator(nsIURI *aURI);
|
2011-05-04 11:29:45 +00:00
|
|
|
|
|
|
|
NS_INLINE_DECL_REFCOUNTING(nsHyphenator)
|
|
|
|
|
2011-09-29 06:19:26 +00:00
|
|
|
bool IsValid();
|
2011-05-04 11:29:45 +00:00
|
|
|
|
2014-02-08 18:10:44 +00:00
|
|
|
nsresult Hyphenate(const nsAString& aText, FallibleTArray<bool>& aHyphens);
|
2011-05-04 11:29:45 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
~nsHyphenator();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void *mDict;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsHyphenator_h__
|