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