intl/lwbrk/src/nsJISx4051LineBreaker.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/lwbrk/src/nsJISx4051LineBreaker.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +#ifndef nsJISx4051LineBreaker_h__
     1.9 +#define nsJISx4051LineBreaker_h__
    1.10 +
    1.11 +
    1.12 +#include "nsILineBreaker.h"
    1.13 +
    1.14 +class nsJISx4051LineBreaker : public nsILineBreaker
    1.15 +{
    1.16 +  NS_DECL_ISUPPORTS
    1.17 +
    1.18 +public:
    1.19 +  nsJISx4051LineBreaker();
    1.20 +  virtual ~nsJISx4051LineBreaker();
    1.21 +
    1.22 +  int32_t Next( const char16_t* aText, uint32_t aLen, uint32_t aPos);
    1.23 +
    1.24 +  int32_t Prev( const char16_t* aText, uint32_t aLen, uint32_t aPos);
    1.25 +
    1.26 +  virtual void GetJISx4051Breaks(const char16_t* aText, uint32_t aLength,
    1.27 +                                 uint8_t aBreakMode,
    1.28 +                                 uint8_t* aBreakBefore);
    1.29 +  virtual void GetJISx4051Breaks(const uint8_t* aText, uint32_t aLength,
    1.30 +                                 uint8_t aBreakMode,
    1.31 +                                 uint8_t* aBreakBefore);
    1.32 +
    1.33 +private:
    1.34 +  int32_t WordMove(const char16_t* aText, uint32_t aLen, uint32_t aPos,
    1.35 +                   int8_t aDirection);
    1.36 +};
    1.37 +
    1.38 +#endif  /* nsJISx4051LineBreaker_h__ */

mercurial