PHP 8.2.30
Preview: schriter.h Size: 6.10 KB
/opt/alt/alt-nodejs19/root/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"

#if U_SHOW_CPLUSPLUS_API

#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 bool           operator==(const ForwardCharacterIterator& that) const override;

  /**
   * 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 StringCharacterIterator* clone() const override;

  /**
   * 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) override;

  /**
   * 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 override;

  /**
   * 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();

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

};

U_NAMESPACE_END

#endif /* U_SHOW_CPLUSPLUS_API */

#endif

Directory Contents

Dirs: 0 × Files: 190

Name Size Perms Modified Actions
26.53 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
8.53 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
9.98 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
27.81 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
10.75 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
20.78 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
7.48 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
102.25 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
7.47 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
25.33 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
7.22 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
24.06 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
23.98 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
13.78 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
56.27 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
6.88 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
3.78 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
7.30 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
4.02 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
40.71 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
1.19 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
20.61 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
87.57 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
7.11 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
7.21 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
38.22 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
3.85 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
49.27 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
18.63 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
28.69 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
8.69 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
20.74 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
2.08 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
4.84 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
8.70 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
5.37 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
24.43 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
12.50 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
9.75 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
3.03 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
3.35 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
31.04 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
1.02 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
11.83 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
12.71 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
8.61 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
11.08 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
26.84 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
19.36 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
7.12 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
47.66 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
11.42 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
106.33 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
4.33 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
33.71 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
44.17 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
33.66 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
30.96 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
2.25 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
94.82 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
25.02 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
49.84 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
7.22 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
3.08 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
5.57 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
28.55 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
25.25 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
20.62 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
3.49 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
6.32 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
28.46 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
49.82 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
15.77 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
84.41 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
9.18 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
22.22 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
9.37 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
18.09 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
6.10 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
6.44 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
22.22 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
14.35 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
12.59 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
45.65 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
71.93 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
11.18 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
1.05 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
9.92 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
5.79 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
10.05 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
15.47 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
21.42 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
4.27 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
36.92 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
43.81 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
3.40 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
4.91 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
7.42 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
65.82 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
42.93 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
16.85 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
34.86 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
6.13 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
89.61 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
12.71 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
24.43 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
60.68 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
15.21 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
5.35 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
145.09 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
22.53 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
7.48 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
13.42 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
11.20 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
83.46 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
6.24 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
6.58 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
20.98 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
61.95 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
9.82 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
12.07 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
5.54 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
22.51 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
14.69 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
16.72 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
62.36 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
15.63 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
11.93 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
30.18 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
5.94 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
8.80 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
7.79 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
4.41 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
10.97 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
12.25 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
2.06 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
33.43 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
22.75 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
10.48 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
10.78 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
54.66 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
11.30 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
15.73 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
1.34 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
24.25 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
8.30 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
4.00 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
4.05 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
6.10 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
3.38 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
66.12 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
170.53 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
20.55 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
24.68 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
56.60 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
30.26 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
15.35 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
7.26 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
10.68 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
8.79 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
71.99 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
9.81 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
17.04 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
135.69 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
5.38 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
36.54 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
27.80 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
39.21 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
44.19 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
9.63 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
18.00 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
65.84 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
8.19 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
38.56 KB lrw-r--r-- 2023-02-22 10:03:47
Edit Download
1.89 KB lrw-r--r-- 2023-02-22 10:03:47
Edit Download
72.36 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
3.15 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
58.08 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
7.87 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
30.83 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
23.35 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
763 B lrw-r--r-- 2023-02-22 10:03:43
Edit Download
45.80 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
13.78 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
17.18 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
25.54 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download
31.06 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
6.33 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
5.99 KB lrw-r--r-- 2023-02-22 10:03:43
Edit Download
20.68 KB lrw-r--r-- 2023-02-22 10:03:44
Edit Download

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