PHP 8.2.30
Preview: schriter.h Size: 6.26 KB
/opt/alt/libicu/usr/include/unicode/schriter.h

// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
******************************************************************************
*
*   Copyright (C) 1998-2005, International Business Machines
*   Corporation and others.  All Rights Reserved.
*
******************************************************************************
*
* File schriter.h
*
* Modification History:
*
*   Date        Name        Description
*  05/05/99     stephen     Cleaned up.
******************************************************************************
*/

#ifndef SCHRITER_H
#define SCHRITER_H

#include "unicode/utypes.h"
#include "unicode/chariter.h"
#include "unicode/uchriter.h"

/**
 * \file 
 * \brief C++ API: String Character Iterator
 */
 
U_NAMESPACE_BEGIN
/**
 * A concrete subclass of CharacterIterator that iterates over the
 * characters (code units or code points) in a UnicodeString.
 * It's possible not only to create an
 * iterator that iterates over an entire UnicodeString, but also to
 * create one that iterates over only a subrange of a UnicodeString
 * (iterators over different subranges of the same UnicodeString don't
 * compare equal).
 * @see CharacterIterator
 * @see ForwardCharacterIterator
 * @stable ICU 2.0
 */
class U_COMMON_API StringCharacterIterator : public UCharCharacterIterator {
public:
  /**
   * Create an iterator over the UnicodeString referred to by "textStr".
   * The UnicodeString object is copied.
   * The iteration range is the whole string, and the starting position is 0.
   * @param textStr The unicode string used to create an iterator
   * @stable ICU 2.0
   */
  StringCharacterIterator(const UnicodeString& textStr);

  /**
   * Create an iterator over the UnicodeString referred to by "textStr".
   * The iteration range is the whole string, and the starting
   * position is specified by "textPos".  If "textPos" is outside the valid
   * iteration range, the behavior of this object is undefined.
   * @param textStr The unicode string used to create an iterator
   * @param textPos The starting position of the iteration
   * @stable ICU 2.0
   */
  StringCharacterIterator(const UnicodeString&    textStr,
              int32_t              textPos);

  /**
   * Create an iterator over the UnicodeString referred to by "textStr".
   * The UnicodeString object is copied.
   * The iteration range begins with the code unit specified by
   * "textBegin" and ends with the code unit BEFORE the code unit specified
   * by "textEnd".  The starting position is specified by "textPos".  If
   * "textBegin" and "textEnd" don't form a valid range on "text" (i.e.,
   * textBegin >= textEnd or either is negative or greater than text.size()),
   * or "textPos" is outside the range defined by "textBegin" and "textEnd",
   * the behavior of this iterator is undefined.
   * @param textStr    The unicode string used to create the StringCharacterIterator
   * @param textBegin  The begin position of the iteration range
   * @param textEnd    The end position of the iteration range
   * @param textPos    The starting position of the iteration
   * @stable ICU 2.0
   */
  StringCharacterIterator(const UnicodeString&    textStr,
              int32_t              textBegin,
              int32_t              textEnd,
              int32_t              textPos);

  /**
   * Copy constructor.  The new iterator iterates over the same range
   * of the same string as "that", and its initial position is the
   * same as "that"'s current position.
   * The UnicodeString object in "that" is copied.
   * @param that The StringCharacterIterator to be copied
   * @stable ICU 2.0
   */
  StringCharacterIterator(const StringCharacterIterator&  that);

  /**
   * Destructor.
   * @stable ICU 2.0
   */
  virtual ~StringCharacterIterator();

  /**
   * Assignment operator.  *this is altered to iterate over the same
   * range of the same string as "that", and refers to the same
   * character within that string as "that" does.
   * @param that The object to be copied.
   * @return the newly created object.
   * @stable ICU 2.0
   */
  StringCharacterIterator&
  operator=(const StringCharacterIterator&    that);

  /**
   * Returns true if the iterators iterate over the same range of the
   * same string and are pointing at the same character.
   * @param that The ForwardCharacterIterator to be compared for equality
   * @return true if the iterators iterate over the same range of the
   * same string and are pointing at the same character.
   * @stable ICU 2.0
   */
  virtual UBool          operator==(const ForwardCharacterIterator& that) const;

  /**
   * Returns a new StringCharacterIterator referring to the same
   * character in the same range of the same string as this one.  The
   * caller must delete the new iterator.
   * @return the newly cloned object.
   * @stable ICU 2.0
   */
  virtual CharacterIterator* clone(void) const;

  /**
   * Sets the iterator to iterate over the provided string.
   * @param newText The string to be iterated over
   * @stable ICU 2.0
   */
  void setText(const UnicodeString& newText);

  /**
   * Copies the UnicodeString under iteration into the UnicodeString
   * referred to by "result".  Even if this iterator iterates across
   * only a part of this string, the whole string is copied.
   * @param result Receives a copy of the text under iteration.
   * @stable ICU 2.0
   */
  virtual void            getText(UnicodeString& result);

  /**
   * Return a class ID for this object (not really public)
   * @return a class ID for this object.
   * @stable ICU 2.0
   */
  virtual UClassID         getDynamicClassID(void) const;

  /**
   * Return a class ID for this class (not really public)
   * @return a class ID for this class
   * @stable ICU 2.0
   */
  static UClassID   U_EXPORT2 getStaticClassID(void);

protected:
  /**
   * Default constructor, iteration over empty string.
   * @stable ICU 2.0
   */
  StringCharacterIterator();

  /**
   * Sets the iterator to iterate over the provided string.
   * @param newText The string to be iterated over
   * @param newTextLength The length of the String
   * @stable ICU 2.0
   */
  void setText(const char16_t* newText, int32_t newTextLength);

  /**
   * Copy of the iterated string object.
   * @stable ICU 2.0
   */
  UnicodeString            text;

};

U_NAMESPACE_END
#endif

Directory Contents

Dirs: 0 × Files: 186

Name Size Perms Modified Actions
26.42 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
8.43 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
8.84 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
27.64 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
9.54 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
19.26 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
7.02 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
105.06 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
7.37 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
25.26 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
7.16 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
24.00 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
23.85 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
13.70 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
55.59 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
6.81 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
3.69 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
7.24 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
3.99 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
40.37 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
1.11 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
20.10 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
87.82 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
6.96 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
37.64 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
3.78 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
46.56 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
18.46 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
25.08 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
8.62 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
20.67 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
2.08 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
4.78 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
8.63 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
5.24 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
24.36 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
12.44 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
9.73 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
2.98 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
3.27 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
31.57 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
1.03 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
11.88 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
12.63 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
9.42 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
10.54 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
19.69 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
7.06 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
44.94 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
11.44 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
88.17 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
4.26 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
33.65 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
44.04 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
33.97 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
30.74 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
2.63 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
84.62 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
29.93 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
49.35 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
7.13 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
3.08 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
5.50 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
27.10 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
25.18 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
18.33 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
3.49 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
6.33 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
26.42 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
49.79 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
15.47 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
84.30 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
9.12 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
22.37 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
9.50 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
18.01 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
6.26 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
6.32 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
22.21 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
14.24 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
12.53 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
45.30 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
70.90 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
11.12 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
1015 B lrw-r--r-- 2019-11-07 06:58:02
Edit Download
10.04 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
5.79 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
6.46 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
15.27 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
21.29 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
4.21 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
36.40 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
41.20 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
3.29 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
4.80 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
7.79 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
65.76 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
42.82 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
16.79 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
35.32 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
6.07 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
89.56 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
12.65 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
23.97 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
55.54 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
15.18 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
5.36 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
140.66 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
21.06 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
7.14 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
13.14 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
11.21 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
83.09 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
6.14 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
6.59 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
20.99 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
61.39 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
9.46 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
12.05 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
5.58 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
22.29 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
14.67 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
16.15 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
60.81 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
15.53 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
10.03 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
25.94 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
5.89 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
7.78 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
4.36 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
10.94 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
12.14 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
2.00 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
33.37 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
22.77 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
10.45 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
8.83 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
50.75 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
11.26 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
13.19 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
1.33 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
24.23 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
8.28 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
3.63 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
3.98 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
6.04 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
3.32 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
64.88 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
170.39 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
20.45 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
24.66 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
53.55 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
25.19 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
7.21 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
10.85 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
7.88 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
72.05 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
9.84 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
17.26 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
131.40 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
5.38 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
36.54 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
26.87 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
38.12 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
40.00 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
9.49 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
18.00 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
66.03 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
8.14 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
38.54 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
1.80 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
72.47 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
3.15 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
58.11 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
7.86 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
29.96 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
22.33 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
763 B lrw-r--r-- 2019-11-07 06:58:02
Edit Download
43.78 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
13.78 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
13.89 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
25.54 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
30.38 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
6.67 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
6.70 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download
20.17 KB lrw-r--r-- 2019-11-07 06:58:02
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).