PHP 8.2.30
Preview: schriter.h Size: 6.32 KB
/proc/thread-self/root/proc/thread-self/root/proc/self/root/opt/alt/libicu65/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 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 StringCharacterIterator* clone() 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 /* U_SHOW_CPLUSPLUS_API */

#endif

Directory Contents

Dirs: 0 × Files: 187

Name Size Perms Modified Actions
26.48 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
8.49 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
9.15 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
27.80 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
9.60 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
20.77 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
7.08 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
105.74 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
7.43 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
25.33 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
7.22 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
24.05 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
23.91 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
13.76 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
56.23 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
6.88 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
3.76 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
7.30 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
4.05 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
40.67 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
1.19 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
20.13 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
87.38 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
6.97 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
37.70 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
3.84 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
46.63 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
18.51 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
25.08 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
8.68 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
20.74 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
2.08 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
4.84 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
8.69 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
5.37 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
24.42 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
12.50 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
10.27 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
3.04 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
3.33 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
31.71 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
1.03 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
11.88 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
12.70 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
9.47 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
11.27 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
22.50 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
19.69 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
7.12 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
47.40 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
11.33 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
93.31 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
4.32 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
33.71 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
44.11 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
34.03 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
30.94 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
2.69 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
86.31 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
30.14 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
49.81 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
7.19 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
3.08 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
5.56 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
28.08 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
25.20 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
18.39 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
3.49 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
6.33 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
26.58 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
48.73 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
15.60 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
84.36 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
9.18 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
22.62 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
9.37 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
18.07 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
6.32 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
6.40 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
22.22 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
14.30 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
12.59 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
45.44 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
70.97 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
11.18 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
1.05 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
9.92 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
5.79 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
7.38 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
15.33 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
21.30 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
4.27 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
36.61 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
41.02 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
3.38 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
4.90 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
7.85 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
65.82 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
42.89 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
16.85 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
35.37 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
6.12 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
89.56 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
12.65 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
23.97 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
56.90 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
15.18 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
5.36 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
140.56 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
22.58 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
7.21 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
13.20 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
11.21 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
83.09 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
6.14 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
6.59 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
20.99 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
61.46 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
9.46 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
12.07 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
5.53 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
22.46 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
14.67 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
16.12 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
60.88 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
15.56 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
10.03 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
26.01 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
5.89 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
7.78 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
4.36 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
10.94 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
12.14 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
2.00 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
33.37 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
22.77 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
10.45 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
8.83 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
52.54 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
11.26 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
14.53 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
1.33 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
24.23 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
8.24 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
3.96 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
4.04 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
6.10 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
3.38 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
64.90 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
170.43 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
20.52 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
24.66 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
53.62 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
25.36 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
7.21 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
10.68 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
7.88 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
72.05 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
9.84 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
17.26 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
130.97 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
5.38 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
36.54 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
26.87 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
38.12 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
40.00 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
9.55 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
18.00 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
65.90 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
8.14 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
38.54 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
1.89 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
72.47 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
3.15 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
58.13 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
7.86 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
30.96 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
23.32 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
763 B lrw-r--r-- 2022-02-08 16:22:58
Edit Download
45.83 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
13.78 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
15.73 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
25.52 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download
30.74 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
6.67 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
6.00 KB lrw-r--r-- 2022-02-08 16:22:58
Edit Download
20.30 KB lrw-r--r-- 2022-02-08 16:22:59
Edit Download

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