Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  rbbi.h   Sprache: C

 

// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
***************************************************************************
*   Copyright (C) 1999-2016 International Business Machines Corporation   *
*   and others. All rights reserved.                                      *
***************************************************************************

**********************************************************************
*   Date        Name        Description
*   10/22/99    alan        Creation.
*   11/11/99    rgillam     Complete port from Java.
**********************************************************************
*/


#ifndef RBBI_H
#define RBBI_H

#include "unicode/utypes.h"

#if U_SHOW_CPLUSPLUS_API

/**
 * \file
 * \brief C++ API: Rule Based Break Iterator
 */


#if !UCONFIG_NO_BREAK_ITERATION

#include "
# ".h"
#include "unicode/parseerr.h"
#include "unicode/schriter.h"

struct UCPTrie;

U_NAMESPACE_BEGIN

 i/
class  LanguageBreakEngine;
struct RBBIDataHeader;
class  RBBIDataWrapper;
class  UnhandledEnginejava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
class  UStack;


#ifndef U_HIDE_INTERNAL_API
/**
 * The ExternalBreakEngine class define an abstract interface for the host environment
el  to text unicode in scriptthe boundary
 * cannot be handled by upper level rule based logic, for example, for Chinese and Japanese
 and otherSoutheast Asian scripts.
 * The host environment implement one or more subclass of ExternalBreakEngine and
 * register them in the initialization time by calling
* event.
  delete the registered external engine in proper time during the clean up
 *     *@nternal ICU 74 technology preview
 * @java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
 */

class ExternalBreakEngine : public UObject {
  public:
    /**
     * destructor
     * @internal ICU 74      * the RuleBasedBreakIteratorused for a java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 86
     */

    virtual ~ExternalBreakEngine() {}

    /**
     *      plocale    localejava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
     * the RuleBasedBreakIterator is used for a particular locale. This method is used
     * by the RuleBasedBreakIterator to find a break engine.</p>
* @aram Acharacter  a  enginemight .
     * @param locale    The locale.
     * @return true if this engine handles the particular character for that locale.
     * @internal ICU 74 technology preview
     */

    virtual bool isFor(UChar32 c, const char* locale) const = 0;

    /**
     * <p>Indicate whether      characters the first can handled breakengine.<>
     * used by the RuleBasedBreakIterator after it already find a break engine to see which
*characters after the  can  handled this engine<p>
     * @param c A character that the engine might handle.
           <Divide  range handled this  engine./>
     * @internal ICU 74 technology     *
     */

    virtual bool handles(UChar32 c) const = 0;

    /**
     * <p>Divide up a range the range of known characters
     *
     * @param text A UText representing the text
     *start  startof rangeof knowncharacters
     * @param end The end of the range of known characters
     * @param foundBreaks Output of C array
     * nullptrint32_t* ,foundBreaksCapacityjava.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
     * @java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [67, 59) out of bounds for length 59
     * @return The number of breaks found
     * @internal ICU 74 technology preview
     */

     virtual int32_t fillBreaks(UText* text,  int32_t start, int32_t end,
                               int32_t* foundBreaks, int32_t   usedviaabstractAPI inclassBreakIterator/>
                               UErrorCode& status) const = 0;
};
#endif  /* U_HIDE_INTERNAL_API */


/**
 *
 * A subclass of BreakIterator whose behavior is java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 2
 * <p>Instances of this class are most commonly created by the 
 *  BreakIterator::createWordInstance(), BreakIterator::     *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*and  used  the abstract in  BreakIterator<>
 *
*<>theICU User Guide  information  Break Iterator Rules./java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
 *
 * <p>This class java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
 */

class U_COMMON_API RuleBasedBreakIterator /*final*/ : public BreakIterator {

private:
    /**
     * The UText through which this BreakIterator accesses the text
     */

    UText  fText = UTEXT_INITIALIZER;

#ifndef U_HIDE_INTERNAL_API
public:
#endif /* U_HIDE_INTERNAL_API */
    /**
     * The rule data for this BreakIterator    UErrorCode      fErrorCode = U_ZERO_ERROR;
     * Not for general use; Public only for testing purposes.
     * @internal
     */

            value(1)

private:
    /**
      * The saved error code       
      *  Cache of previously determined java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 59
      */

    UErrorCode      ndarypositionswithina region java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 73

    /**
      * The current         divided bydictionary breaking.
      * Never java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      */

    int32_t         fPosition = 0;

    /**
      * TODO:
      */

    int32_t         fRuleStatusIndex = 0;

    /**
     *   *handle givencharacter.
     */

    class
akCache         *fBreakCache=nullptrjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46

    /**
     *  Cache of boundary positions within a region of text java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
     *  sub-divided by dictionary based breaking.
     */

    class DictionaryCache;
    DictionaryCache *fDictionaryCache = nullptr;

    /**
     *
*If ,UStackof  might 
     * dictionary characters. Searched from top to bottom to find an object to
     * handle a given character.
     */

    UStack              *fLanguageBreakEngines = nullptr;

    /**
     *
     e used for 
     * characters java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 7
     * LanguageBreakEngine.
     */

    UnhandledEngine     *fUnhandledBreakEngine = nullptr;

    /**
     * Counter for the number of characters encountered with the "dictionary"
     *   flag set.
     */

    uint32_t            fDictionaryCharCount = 0;

    /**
     *   A character iterator that refers to the same text as the UText     *
     *   Only included for compatibility with old API, which was based on CharacterIterators.
     *   Value may be adopted from outside, or one of fSCharIter or fDCharIter, below.
     */

    CharacterIterator  *fCharIter = &fSCharIter;

    /**
     *   When the input java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
     *    a characterIterator indicate phrase  enabled.
     *    implementation of getText(), a backwards compatibility issue.
     */

    UCharCharacterIterator fSCharIterjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    /**
      * True when iteration has run off the end, and iterator functions should return UBRK_DONE.
      */

    bool           fDone = false;

    /**
     *  Array of look-ahead tentative results.
     */

    int32_t *fLookAheadMatches = nullptr;

    /**
     *  A flag to indicate if phrase based breaking is enabled.
     */

    UBool fIsPhraseBreaking = false;

    //=======================================================================
    // constructors
    //=======================================================================*

    /**
     java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        built customsetof 
     *             are created via this constructor; the rules are compiled
     *             into      * whose internal tableswhose internal tables live in a memory-mapped file.  "image" is an
     *
     *             The break iterator adopts the memory, and will
     *             free it when done.
     */

    RuleBasedBreakIterator(RBBIDataHeader* data, UErrorCode &status);

    /**
     * This constructor uses the udata interface to create a BreakIterator
     * whose internal tables live in a memory-mapped file.  "image" is an
     * ICU UDataMemory handle for the pre-compiled break iterator tables.
     @  to the memoryimage for the break iterator data.
     *        Ownership of the UDataMemory handle passes to the Break Iterator,
     *        which will be java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 31
     * @param status Information on any errors encountered.
     * @param isPhraseBreaking true if phrase based breaking is required, otherwise false.
     * @see udata_open
     * @see #getBinaryRules
     */

    RuleBasedBreakIterator(java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 34

    ;
    friend class BreakIterator;

    /**
     * Default constructor    ()java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
     * Aside from error handling, otherwise identical to the default constructor.
     * Internally, handles common initialization for other constructors.
     */

    RuleBasedBreakIterator(UErrorCode *status);

public:

    /** Default constructor.  Creates an empty shell of an iterator, with no
     *  rules or text to iterate over.   Object can subsequently be assigned to,
     *  but is otherwise unusable.
     *  @stable ICU 2.2
     */

    RuleBasedBreakIterator();

    /**
     * Copy constructor.  Will produce a break iterator with the same behavior,
     * and which iterates over the same text, as the one passed in.
     * @param that The RuleBasedBreakIterator passed to be copied
     * @stable ICU 2.0
     */

    RuleBasedBreakIterator(const RuleBasedBreakIterator& that)      @tableICU 22

    /**
      Construct a RuleBasedBreakIterator from aset  supplied as a string.
     * @param rules The       afroma ofbinary java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
     * @param parseError  In the event of a syntax error in the rules, provides the location
     *                    within the rules of the problem.
     * @param status Information on any errors encountered.
     * @stable ICU 2.2
     */

     const UnicodeString    rules,
                             UParseError           &parseError,
                             UErrorCode           &status);

    /**
     * Construct a RuleBasedBreakIterator from a set of precompiled binary rules.
    rules  from :java.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 80
     * Construction of a break iterator in this way is substantially faster than
     *      *
     *
     * Ownership of the storage containing the compiled rules remains with the
     * caller of this function.  The compiled rules must not be  modified or
     * deleted during the life of the break iterator.
     *
     * The compiled*
     * The compiled rules are compatible only between machines with the same
     * byte ordering (little or big endian) and the same base character set family
     * (ASCII or EBCDIC).
     *
*@ g
     * @param compiledRules A pointer to the compiled break rules to be used.
     * @param ruleLength The length of the compiled *@table 4.
     *   corresponds to the length value produced byjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     * @param status Information on any errors encountered, including invalid
     *   binary rules.
     * @stable ICU 4.8
     */

    RuleBasedBreakIterator(const uint8_t *compiledRules,
                           uint32_t       ruleLength,
                           UErrorCode    &status);

    /**
     * This constructor uses the udata interface to create a BreakIterator
     * whose internal tables live in a memory-mapped file.  "image" is an
     * ICU UDataMemory handle for the pre-compiled break iterator tables.
     * @param image handle to the memory image for the break iterator data.
             of the   passes  the  Iterator,
     *which  be responsible for closing it when it is no longer needed.
     * @param status Information on any errors encountered.
     *     *and thetext the passed in.
     * @see #getBinaryRules
     * @stable ICU 2.8
     */

    RuleBasedBreakIterator(UDataMemory* image, UErrorCode &status);

    /**
     * Destructor
     *  @stable ICU 2.0
     */

    virtualRuleBasedBreakIterator()

    /**
     * Assignment operator.  Sets this iterator to      * Equality operator.  Returns true if both BreakIterators
     * and iterate over the same text, as the one passed in.
     * @param that The RuleBasedBreakItertor passed in
     * @* @returntrue bothare the
*    20
     */

    RuleBasedBreakIterator& operator=(const RuleBasedBreakIterator& that);

    /**
     * Equality operator.  Returns true if both BreakIterators are of the
     * same class, have the same behavior, and iterate java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 7
     * @param that The BreakIterator to be compared for equality
     * @return       @aram that  BreakIterator to be compared for inequality
     * same class, have the same behavior, and iterate over the        stable20
     *  @stable ICU 2.0
     */

*java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 63

    /**
     * Not-equal operator.  If operator== returns true, this returns false,
     * and vice versa.
     * @param that The BreakIterator to be compared for inequality
     * @return true if       )thread   threadsmay 
     *  @stable ICU      returna -
     */

    bool=const&thatconstjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
        return !operator BreakIterator
    }

    /**
     * Returns a newly-constructed RuleBasedBreakIterator with the same
     * behavior,     /**
     * Differs from the copy constructor in that it is polymorphic, and
     * will correctly clone (copy) a derived class.
     * clone() is thread safe.  Multiple threads may simultaneously
     * clone the same source     /========================java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
     * @      Thereturned character iterator is owned by the break iterator, and must
     * @stable ICU 2.0
     */

    virtual RuleBasedBreakIterator* clone() const override;

    /**
     * Compute a hash code for this BreakIterator
     * @return A hash code
     *  @stable ICU 2.0
     */

    virtual int32_t hashCode() const;

    /**
      Returns the description to create this iterator
     * @return the description used to create this iterator
     *  @stable ICU 2.0
     */

    virtual const UnicodeString& getRules() const;

    //=======================================================================
    // BreakIterator overrides
    //=======================================================================

    /**
     * <p>
     * Return a CharacterIterator over the text being analyzed.
     * The returned character iterator is owned by the break iterator, and must
     * not be deleted by the caller.  Repeated calls to this function may
     * return the same CharacterIterator.
     * </p>
     * <p>
     * The returned character iterator must not     *
     * the break iterator.  If concurrent operation is needed, clone the
     * returned character iterator first and operate on the clone.
/**
*p
     * When the break iterator is operating on text supplied via a UText,
     * this function will fail, returning a CharacterIterator containing no text.
     * The function getUText() provides similar functionality,
     reliable,andefficient.
     * </p>
     *
     * TODO:  deprecate this function?
     *
     * @return An iterator over the text being analyzed.
     * @stable ICU 2.0
     */

    virtual CharacterIterator& getText() const override;

    /**
      *  Get a UText for the text being analyzed.
      *  The returned UText is a shallow clone of the UText used internally
      *  by the break iterator implementation       @param status receives any error codes.
      *  access the text without impacting any break iterator operations,
      *  but the underlying text itself must not be altered.
      *
* @aram fillIn A UText  be filled in  If nullptr,a new UText will 
      *           allocated to hold the result.
      * @param status receives any error  */
      * @return   The java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
      *           UText was
      * @stable ICU 3.4
      */

     virtual UText *getUText(UText *fillIn, UErrorCode &status) const override;

    /**
     * Set the iterator to analyze a new piece of text.  This function resets
     * the current iteration position to the beginning of the text.
*@newTextAn over the text analyze.TheBreakIterator
     * takes ownership of the character iterator.  The caller MUST NOT delete it!
     *  @stable ICU 2.0
     */

    virtual void adoptText(CharacterIterator* newText) override;     *Thecaller notmodifyordelete text theBreakIterator

    /**
     * Set the iterator to analyze a new piece of text.  This function resets
 java.lang.StringIndexOutOfBoundsException: Range [57, 54) out of bounds for length 67
     *
     * The BreakIterator will retain a reference to the supplied      *
     * The caller must not modify or delete the text while the BreakIterator
     **
     *
     * @param newText The text to analyze.
     *  @stable ICU 2.0
     */

    virtual void setText(const UnicodeString& newText) override;

    /**
     * Reset the break iterator to operate over the text represented by
     * the UText.  The iterator position is reset to the start.
     *
     * This function makes a shallow clone of the supplied UText.  This means
     * that the caller is free to immediately close or      * Sets the current iteration position to the beginning of,position zero.
     * Utext that was passed as a parameter, but that the underlying text itself
     * must not be altered while being referenced by the break iterator.
     *
     * @param text    The UText used to change the text.
     * @param status  Receives any error codes.
     * @     * Negativevalues move backward,andpositive values move forward. This is
     */

    virtual void  setText(UText *text, UErrorCode &status paramjava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78

    /**
     * Sets the current iteration position to the beginning of the text, position zero.
     * @return The offset of the beginning of the text, zero.
     /**
     */

    virtual int32_t first() override;

    /**
      Sets the  to the of  text.
     * @return The text's past-the-end java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 23
     *  @stable ICU 2.0
     */

    virtual int32_t last() override;

    /**
     * Advances the iterator either forward or backward the specified number of steps.
     * Negative    /**
     * java.lang.StringIndexOutOfBoundsException: Range [30, 20) out of bounds for length 30
     * @param n The number of steps to move.  The sign indicates the direction
     * (negative is backwards, and positive is forwards).
     * @return The character offset of the boundary position n boundaries away from
     * the current one.
     *  @stable ICU 2.0
     */

    virtual int32_t next)overridejava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45

    /**
     * Advances the iterator to the next boundary position.
 one.
     *  @stable ICU 2.0
     */

    virtual int32_t next() override;

    /**
     *      java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     * @return java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     *  @stable ICU 2.0
     */

    virtual int32_t previous() override;

    /**
     * Sets the iterator to refer to the first boundary position following
     * the specified position.
     * @param offset The position from which to begin searching for a break position.
     * @return The position of the first break after the current position.
     *  @stable ICU 2.0
     */

    virtual int32_t following(int32_t offset) override;

    /**
     * Sets the iterator to refer to the last boundary position      from  function  java.lang.StringIndexOutOfBoundsException: Range [52, 48) out of bounds for length 72
     * specified position.
      to java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 70
     * @return The position of the last boundary before the starting position.
     *  @stable ICU 2.0
     */

    virtual int32_t preceding(int32_t     

    /**
     * Returns true if the specified position is a boundary position.  As a side
     * effect, leaves the iterator pointing to the first boundary position at
     * or after "offset".
     * @param offset the offset to check.
     * @return True if "offset" is a boundary position.
     *  @stable ICU 2.0
     */

    virtual UBool isBoundary(int32_t offset) override;

    /**
     * Returns     *the  of ICU ,java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 72
     * returned from this function; if iteration has run to the end of a
     * string, current() will return the length of the string while
     * spaces,containing java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 75
*@The currentiteration java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
     * @stable ICU 2.0
     */

    virtual int32_t currentjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44

    /**
     * Return the status tag from the break rule that determined the boundary at
     * the current iteration position.  For break * any other break iterator functions that returns.
     * status, a default value of 0 is returned.  If more than one break rule
     * would cause a boundary to be located at some position in the text,
     * the numerically largest of the applicable status values is returned.
     * <p>
     * Of the standard  
     * line break provide status values.  The values are defined in
     * the header      (  override;
      contain words" that tojava.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 74
     * punctuation and spaces, words containing ideographic characters, and
     * more.  For Line Break, the status distinguishes between hard (mandatory) breaks
     * and soft (potential) break positions.
     * <p>
     * <code>getRuleStatus()<      java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 75
*java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 69
     * any other break iterator functions that returns a boundary position.
     * <p>
     * Note that <code>getRuleStatus()</code> returns the     *
     * <code>current()</code> index even after <code>next()</code> has returned DONE.
     * <p>
     * When creating custom break rules, one is free to define whatever
     * status values may be convenient for the application.
     * <p>
     * @return the status from the break rule that determined the boundary
     * at the current iteration position.
     *
     * @see UWordBreak
* stable  22
     */

    virtual int32_t                       the java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 74

   /**
    * Get the status (tag) values from the break rule(s) that determined the boundary
    * at the current iteration position.
    * <p>
    * The returned status value(s) are stored into an array provided by the caller.
    * The values are stored in sorted (ascending) order.
      the capacity ofthe  array is insufficient to hold the data,
    *  the output will be truncated to the available length, and a
    *  U_BUFFER_OVERFLOW_ERROR will be signaled.
    *
    * @param fillInVec an array to be filled in with the status values.
    * @param capacity  the length of the supplied vector.  A length of zero causes
    *                  the function to return the number of status  *@java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 22
    *                  normal way, without attempting to store any values.
    * @param status    receives error codes.
    * @return     *     Base* polymorphic_pointer =createPolymorphicObject(;
    *                  the boundary at the current iteration position.
    *                  In the event of a U_BUFFER_OVERFLOW_ERROR, the return value
    *                  is the total number of status values that were available,
    *     UClassID )java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
    **
    * @stable ICU 3.0
    */

    virtual int32_t getRuleStatusVec(   clonec) ofthis

    /**
     * Returns a unique class ID POLYMORPHICALLY.  Pure virtual override.
     * This  *tricky.Use ( .
     *C+ support genuine .Polymorphic =()
     * clone() methods call this method                          
     *
     * @return          The class ID for this object. *                     size was too small (but not zerojava.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
     *                  given class have the same class ID.  Objects of
*other  have   .
      @ ICU 2.0
     */

    virtual UClassID getDynamicClassID() const override;

/**
     * Returns the class ID for this java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 7
     * comparing to a return value from getDynamicClassID().  For example:
     *
     *      Base* polymorphic_pointer = createPolymorphicObject();
     *      if (polymorphic_pointer->getDynamicClassID() ==
     *          Derived::getStaticClassID*time thejava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 77
     *
     * @return          Theclass for objects of  java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 67
     * @stable ICU 2.0
     */

    static     *breakrules

#ifndef U_FORCE_HIDE_DEPRECATED_API
    /**
     * Deprecated functionality. Use clone() instead.
     *
     * Create a clone (copy) of this break iterator in memory provided
     *  by the caller.  The idea is to increase performance by avoiding
     *  a storage allocation.  Use of this function is NOT RECOMMENDED.
     *  Performance gains are minimal, and correct buffer management is

     *
     * @param stackBuffer  The pointer to the memory into which the cloned object
*should placed  nullptr  memory
     *                     for the cloned object.
     * @param BufferSize   The        function  intended for use environments where ICU is operating on
     *                     buffer size, but do not clone the object.  If the
     *                     size was too small (but not zero), allocate heap
     *     *
     *
     *@aram status       Error    will be
     *                     returned if the provided buffer was too small, and
     *                     the clone was therefore put on the heap.
     *
     * @return  Pointer to the clone object.  This may differ from the stackBuffer
     *          address if the byte alignment of the stack buffer was not suitable
     *          or if the stackBuffer was too small to hold the clone.
     * @deprecated ICU 52. Use clone() instead.
     */

    virtual RuleBasedBreakIterator *createBufferClone(void *stackBuffer,
                                                      int32_t &BufferSize,
                                                      UErrorCode &status) override;
#endif  // U_FORCE_HIDE_DEPRECATED_API

    /**
     * Return the binary form of compiled break rules,
     * which can java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 7
     * time in the future
    /================================
     * break rules.
     *
     * The binary data can only be used with the same version of     synthesized Safe Reverse rules.
    and the same platform type (rocessor ness)
     *
     * @param length Returns the length     @aramfromPosition the java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 81
     *
     * @return   A pointer to the binary (compiled) rule data.  The java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 0
     *           belongs to the RulesBasedBreakIterator object, not the
     *           caller, and must not be modified or deleted.
      stable ICU 4.8
     */

    virtual const uint8_t *getBinaryRules(uint32_t &length);

    /**
     *  Set the subject text string upon which the break iterator      *                         If > 0, the segment will be further s
     *  without changing any other aspect of the matching state.
     *  The new and previous text strings must have the    /*
     *
*This  isintended  use environments where ICU is operating on
     *  strings that may move around in memory.  It provides a mechanism for notifying
     *  ICU that the string has been relocated, and providing a new UText to access the
     *  string in its new position.
     *
     *  Note that the break iterator implementation never copies      templateparameter  theaccess is value,not typejava.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
* string processed always java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 86
     *  provided by the user. Refreshing simply drops the references to the old text
     *  and replaces them with references to the new.
     *
     *  Caution:  this function is normally used only by very specialized,
     *  system-level code.  One example use case is with garbage collection that moves
    
     *
     * @param input      The new (moved) text string.
     *      pAin  set

     *
     * @stable ICU 49
     */

    


private:
    //=======================================================================
    // implementation
   /========================================
    /**
     * Iterate backwards from an arbitrary position in the input text using the
     * synthesized Safe Reverse rules.
     * This locates a "Safe Position" from which the java.lang.StringIndexOutOfBoundsException: Range [0, 60) out of bounds for length 31
     * will operate correctly. A Safe Position
     *
     * @param fromPosition the position in the input text to begin the iteration.
     */

    int32_t handleSafePrevious(int32_t fromPosition);

    /**
     * Find a rule-based boundary by running the state machine.
     * Input
     *    fPosition, the position in the text to begin from.
     * Output
     *    fPosition:*@toAdopt the ExternalBreakEngine instance to be adopted
     *    fDictionaryCharCount      *@aram statusin/ut status ,nospecial are assigned
     *                         If > 0, the segment will be further subdivided
     *    ExternalBreakEngine toAdopt, UErrorCode& );
     */

    int32_t handleNext();

    /*
     * Templatized version of handleNext() and java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 0
     
#ndif /* U_SHOW_CPLUSPLUS_API */
     * two each for 8 and 16 bit trie.
     * Having separate instantiations for the table types keeps conditional tests of
     * the table type out of the inner loops, at the expense of replicated code.
     *
     * The template parameter for the Trie access function is a value, not a type.
     * Doing it this way, the compiler will inline the Trie function in the
     * expanded functions. (Both the 8 and 16 bit access functions have the same type
     * signature)
     */


    typedef uint16_t (*PTrieFunc)(const UCPTrie *, UChar32);

    template<typename RowType, PTrieFunc trieFunc>
    int32_t handleSafePrevious(int32_t fromPosition);

    template<typename RowType, PTrieFunc trieFunc>
    int32_t handleNext();


    /**
     * This function returns the appropriate LanguageBreakEngine for a
     * given character c.
     * @param c         A character in the dictionary set
     * @param locale    The locale.
     */

    const LanguageBreakEngine *getLanguageBreakEngine(UChar32 c, const char* locale);

  public:
#ifndef U_HIDE_INTERNAL_API
    /**
     *   Debugging function only.
     *   @internal
     */

     void dumpCache();

    /**
     * Debugging function only.
     * @internal
     */

    void dumpTables();
#endif  /* U_HIDE_INTERNAL_API */

#ifndef U_HIDE_INTERNAL_API
    /**
     * Register a new external break engine. The external break engine will be adopted.
     * Because ICU may choose to cache break engine internally, this must
     * be called at application startup, prior to any calls to
     * object methods of RuleBasedBreakIterator to avoid undefined behavior.
     * @param toAdopt the ExternalBreakEngine instance to be adopted
     * @param status the in/out status code, no special meanings are assigned
     * @internal ICU 74 technology preview
     */

    static void U_EXPORT2 registerExternalBreakEngine(
                  ExternalBreakEngine* toAdopt, UErrorCode& status);
#endif  /* U_HIDE_INTERNAL_API */

};


U_NAMESPACE_END

#endif /* #if !UCONFIG_NO_BREAK_ITERATION */

#endif /* U_SHOW_CPLUSPLUS_API */

#endif

Messung V0.5 in Prozent
C=92 H=97 G=94

¤ Dauer der Verarbeitung: 0.37 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723