• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • kdecore
  • localization
  • probers
nsHebrewProber.h
Go to the documentation of this file.
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* -*- C++ -*-
3 * Copyright (C) 1998 <developer@mozilla.org>
4 *
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining
7 * a copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sublicense, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 */
25 
26 #ifndef nsHebrewProber_h__
27 #define nsHebrewProber_h__
28 
29 #include "nsSBCharSetProber.h"
30 namespace kencodingprober {
31 // This prober doesn't actually recognize a language or a charset.
32 // It is a helper prober for the use of the Hebrew model probers
33 class KDE_NO_EXPORT nsHebrewProber: public nsCharSetProber
34 {
35 public:
36  nsHebrewProber(void) :mLogicalProb(0), mVisualProb(0) { Reset(); }
37 
38  virtual ~nsHebrewProber(void) {}
39  virtual nsProbingState HandleData(const char* aBuf, unsigned int aLen);
40  virtual const char* GetCharSetName();
41  virtual void Reset(void);
42 
43  virtual nsProbingState GetState(void);
44 
45  virtual float GetConfidence(void) { return (float)0.0; }
46  virtual void SetOpion() {};
47 
48  void SetModelProbers(nsCharSetProber *logicalPrb, nsCharSetProber *visualPrb)
49  { mLogicalProb = logicalPrb; mVisualProb = visualPrb; }
50 
51 #ifdef DEBUG_PROBE
52  virtual void DumpStatus();
53 #endif
54 
55 protected:
56  static bool isFinal(char c);
57  static bool isNonFinal(char c);
58 
59  int mFinalCharLogicalScore, mFinalCharVisualScore;
60 
61  // The two last characters seen in the previous buffer.
62  char mPrev, mBeforePrev;
63 
64  // These probers are owned by the group prober.
65  nsCharSetProber *mLogicalProb, *mVisualProb;
66 };
67 }
68 
165 #endif /* nsHebrewProber_h__ */
kencodingprober::nsHebrewProber::mFinalCharVisualScore
int mFinalCharVisualScore
Definition: nsHebrewProber.h:59
nsSBCharSetProber.h
kencodingprober::nsHebrewProber::~nsHebrewProber
virtual ~nsHebrewProber(void)
Definition: nsHebrewProber.h:38
KDE_NO_EXPORT
#define KDE_NO_EXPORT
The KDE_NO_EXPORT macro marks the symbol of the given variable to be hidden.
Definition: kdemacros.h.cmake:73
kencodingprober::nsHebrewProber::SetOpion
virtual void SetOpion()
Definition: nsHebrewProber.h:46
kencodingprober::nsHebrewProber::mPrev
char mPrev
Definition: nsHebrewProber.h:62
kencodingprober::nsCharSetProber
Definition: nsCharSetProber.h:42
kencodingprober::nsProbingState
nsProbingState
Definition: nsCharSetProber.h:34
kencodingprober::nsHebrewProber::mVisualProb
nsCharSetProber * mVisualProb
Definition: nsHebrewProber.h:65
kencodingprober::nsHebrewProber
Definition: nsHebrewProber.h:33
kencodingprober::nsHebrewProber::nsHebrewProber
nsHebrewProber(void)
Definition: nsHebrewProber.h:36
kencodingprober::nsHebrewProber::SetModelProbers
void SetModelProbers(nsCharSetProber *logicalPrb, nsCharSetProber *visualPrb)
Definition: nsHebrewProber.h:48
kencodingprober::nsHebrewProber::GetConfidence
virtual float GetConfidence(void)
Definition: nsHebrewProber.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal