$27 GRAYBYTE WORDPRESS FILE MANAGER $24

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 91.108.106.159 | ADMIN IP 216.73.216.215
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/alt-nodejs18/root/usr/include/unicode/

HOME
Current File : /opt/alt/alt-nodejs18/root/usr/include/unicode//parsepos.h
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
* Copyright (C) 1997-2005, International Business Machines Corporation and others. All Rights Reserved.
*******************************************************************************
*
* File PARSEPOS.H
*
* Modification History:
*
*   Date        Name        Description
*   07/09/97    helena      Converted from java.
*   07/17/98    stephen     Added errorIndex support.
*   05/11/99    stephen     Cleaned up.
*******************************************************************************
*/

#ifndef PARSEPOS_H
#define PARSEPOS_H

#include "unicode/utypes.h"

#if U_SHOW_CPLUSPLUS_API

#include "unicode/uobject.h"

 
U_NAMESPACE_BEGIN

/**
 * \file
 * \brief C++ API: Canonical Iterator
 */
/** 
 * <code>ParsePosition</code> is a simple class used by <code>Format</code>
 * and its subclasses to keep track of the current position during parsing.
 * The <code>parseObject</code> method in the various <code>Format</code>
 * classes requires a <code>ParsePosition</code> object as an argument.
 *
 * <p>
 * By design, as you parse through a string with different formats,
 * you can use the same <code>ParsePosition</code>, since the index parameter
 * records the current position.
 *
 * The ParsePosition class is not suitable for subclassing.
 *
 * @version     1.3 10/30/97
 * @author      Mark Davis, Helena Shih
 * @see         java.text.Format
 */

class U_COMMON_API ParsePosition : public UObject {
public:
    /**
     * Default constructor, the index starts with 0 as default.
     * @stable ICU 2.0
     */
    ParsePosition()
        : UObject(),
        index(0),
        errorIndex(-1)
      {}

    /**
     * Create a new ParsePosition with the given initial index.
     * @param newIndex the new text offset.
     * @stable ICU 2.0
     */
    ParsePosition(int32_t newIndex)
        : UObject(),
        index(newIndex),
        errorIndex(-1)
      {}

    /**
     * Copy constructor
     * @param copy the object to be copied from.
     * @stable ICU 2.0
     */
    ParsePosition(const ParsePosition& copy)
        : UObject(copy),
        index(copy.index),
        errorIndex(copy.errorIndex)
      {}

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

    /**
     * Assignment operator
     * @stable ICU 2.0
     */
    inline ParsePosition&      operator=(const ParsePosition& copy);

    /**
     * Equality operator.
     * @return true if the two parse positions are equal, false otherwise.
     * @stable ICU 2.0
     */
    inline bool               operator==(const ParsePosition& that) const;

    /**
     * Equality operator.
     * @return true if the two parse positions are not equal, false otherwise.
     * @stable ICU 2.0
     */
    inline bool               operator!=(const ParsePosition& that) const;

    /**
     * Clone this object.
     * Clones can be used concurrently in multiple threads.
     * If an error occurs, then nullptr is returned.
     * The caller must delete the clone.
     *
     * @return a clone of this object
     *
     * @see getDynamicClassID
     * @stable ICU 2.8
     */
    ParsePosition *clone() const;

    /**
     * Retrieve the current parse position.  On input to a parse method, this
     * is the index of the character at which parsing will begin; on output, it
     * is the index of the character following the last character parsed.
     * @return the current index.
     * @stable ICU 2.0
     */
    inline int32_t getIndex(void) const;

    /**
     * Set the current parse position.
     * @param index the new index.
     * @stable ICU 2.0
     */
    inline void setIndex(int32_t index);

    /**
     * Set the index at which a parse error occurred.  Formatters
     * should set this before returning an error code from their
     * parseObject method.  The default value is -1 if this is not
     * set.
     * @stable ICU 2.0
     */
    inline void setErrorIndex(int32_t ei);

    /**
     * Retrieve the index at which an error occurred, or -1 if the
     * error index has not been set.
     * @stable ICU 2.0
     */
    inline int32_t getErrorIndex(void) const;

    /**
     * ICU "poor man's RTTI", returns a UClassID for this class.
     *
     * @stable ICU 2.2
     */
    static UClassID U_EXPORT2 getStaticClassID();

    /**
     * ICU "poor man's RTTI", returns a UClassID for the actual class.
     *
     * @stable ICU 2.2
     */
    virtual UClassID getDynamicClassID() const override;

private:
    /**
     * Input: the place you start parsing.
     * <br>Output: position where the parse stopped.
     * This is designed to be used serially,
     * with each call setting index up for the next one.
     */
    int32_t index;

    /**
     * The index at which a parse error occurred.
     */
    int32_t errorIndex;

};

inline ParsePosition&
ParsePosition::operator=(const ParsePosition& copy)
{
  index = copy.index;
  errorIndex = copy.errorIndex;
  return *this;
}

inline bool
ParsePosition::operator==(const ParsePosition& copy) const
{
  if(index != copy.index || errorIndex != copy.errorIndex)
  return false;
  else
  return true;
}

inline bool
ParsePosition::operator!=(const ParsePosition& copy) const
{
  return !operator==(copy);
}

inline int32_t
ParsePosition::getIndex() const
{
  return index;
}

inline void
ParsePosition::setIndex(int32_t offset)
{
  this->index = offset;
}

inline int32_t
ParsePosition::getErrorIndex() const
{
  return errorIndex;
}

inline void
ParsePosition::setErrorIndex(int32_t ei)
{
  this->errorIndex = ei;
}
U_NAMESPACE_END

#endif /* U_SHOW_CPLUSPLUS_API */

#endif

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Oct 2025 6.57 AM
root / root
0755
alphaindex.h
26.539 KB
1 Apr 2024 3.23 PM
root / root
0644
appendable.h
8.54 KB
1 Apr 2024 3.23 PM
root / root
0644
basictz.h
9.988 KB
1 Apr 2024 3.23 PM
root / root
0644
brkiter.h
27.863 KB
1 Apr 2024 3.23 PM
root / root
0644
bytestream.h
10.755 KB
1 Apr 2024 3.23 PM
root / root
0644
bytestrie.h
20.802 KB
1 Apr 2024 3.23 PM
root / root
0644
bytestriebuilder.h
7.479 KB
1 Apr 2024 3.23 PM
root / root
0644
calendar.h
106.52 KB
1 Apr 2024 3.23 PM
root / root
0644
caniter.h
7.467 KB
1 Apr 2024 3.23 PM
root / root
0644
casemap.h
25.417 KB
1 Apr 2024 3.23 PM
root / root
0644
char16ptr.h
7.216 KB
1 Apr 2024 3.23 PM
root / root
0644
chariter.h
24.064 KB
1 Apr 2024 3.23 PM
root / root
0644
choicfmt.h
23.995 KB
1 Apr 2024 3.23 PM
root / root
0644
coleitr.h
13.778 KB
1 Apr 2024 3.23 PM
root / root
0644
coll.h
56.3 KB
1 Apr 2024 3.23 PM
root / root
0644
compactdecimalformat.h
6.876 KB
1 Apr 2024 3.23 PM
root / root
0644
curramt.h
3.668 KB
1 Apr 2024 3.23 PM
root / root
0644
currpinf.h
7.304 KB
1 Apr 2024 3.23 PM
root / root
0644
currunit.h
4.019 KB
1 Apr 2024 3.23 PM
root / root
0644
datefmt.h
40.722 KB
1 Apr 2024 3.23 PM
root / root
0644
dbbi.h
1.194 KB
1 Apr 2024 3.23 PM
root / root
0644
dcfmtsym.h
20.942 KB
1 Apr 2024 3.23 PM
root / root
0644
decimfmt.h
87.54 KB
1 Apr 2024 3.23 PM
root / root
0644
displayoptions.h
7.082 KB
1 Apr 2024 3.23 PM
root / root
0644
docmain.h
7.305 KB
1 Apr 2024 3.23 PM
root / root
0644
dtfmtsym.h
38.23 KB
1 Apr 2024 3.23 PM
root / root
0644
dtintrv.h
3.852 KB
1 Apr 2024 3.23 PM
root / root
0644
dtitvfmt.h
49.261 KB
1 Apr 2024 3.23 PM
root / root
0644
dtitvinf.h
18.632 KB
1 Apr 2024 3.23 PM
root / root
0644
dtptngen.h
28.64 KB
1 Apr 2024 3.23 PM
root / root
0644
dtrule.h
8.689 KB
1 Apr 2024 3.23 PM
root / root
0644
edits.h
20.726 KB
1 Apr 2024 3.23 PM
root / root
0644
enumset.h
2.08 KB
1 Apr 2024 3.23 PM
root / root
0644
errorcode.h
4.84 KB
1 Apr 2024 3.23 PM
root / root
0644
fieldpos.h
8.7 KB
1 Apr 2024 3.23 PM
root / root
0644
filteredbrk.h
5.372 KB
1 Apr 2024 3.23 PM
root / root
0644
fmtable.h
24.448 KB
1 Apr 2024 3.23 PM
root / root
0644
format.h
12.502 KB
1 Apr 2024 3.23 PM
root / root
0644
formattednumber.h
6.151 KB
1 Apr 2024 3.23 PM
root / root
0644
formattedvalue.h
9.753 KB
1 Apr 2024 3.23 PM
root / root
0644
fpositer.h
3.034 KB
1 Apr 2024 3.23 PM
root / root
0644
gender.h
3.346 KB
1 Apr 2024 3.23 PM
root / root
0644
gregocal.h
30.025 KB
1 Apr 2024 3.23 PM
root / root
0644
icudataver.h
1.024 KB
1 Apr 2024 3.23 PM
root / root
0644
icuplug.h
12.102 KB
1 Apr 2024 3.23 PM
root / root
0644
idna.h
12.713 KB
1 Apr 2024 3.23 PM
root / root
0644
listformatter.h
8.593 KB
1 Apr 2024 3.23 PM
root / root
0644
localebuilder.h
11.084 KB
1 Apr 2024 3.23 PM
root / root
0644
localematcher.h
26.826 KB
1 Apr 2024 3.23 PM
root / root
0644
localpointer.h
19.441 KB
1 Apr 2024 3.23 PM
root / root
0644
locdspnm.h
7.121 KB
1 Apr 2024 3.23 PM
root / root
0644
locid.h
48.274 KB
1 Apr 2024 3.23 PM
root / root
0644
measfmt.h
11.422 KB
1 Apr 2024 3.23 PM
root / root
0644
measunit.h
107.378 KB
1 Apr 2024 3.23 PM
root / root
0644
measure.h
4.686 KB
1 Apr 2024 3.23 PM
root / root
0644
messagepattern.h
33.723 KB
1 Apr 2024 3.23 PM
root / root
0644
msgfmt.h
44.211 KB
1 Apr 2024 3.23 PM
root / root
0644
normalizer2.h
34.734 KB
1 Apr 2024 3.23 PM
root / root
0644
normlzr.h
30.968 KB
1 Apr 2024 3.23 PM
root / root
0644
nounit.h
2.251 KB
1 Apr 2024 3.23 PM
root / root
0644
numberformatter.h
90.025 KB
1 Apr 2024 3.23 PM
root / root
0644
numberrangeformatter.h
25.315 KB
1 Apr 2024 3.23 PM
root / root
0644
numfmt.h
50.257 KB
1 Apr 2024 3.23 PM
root / root
0644
numsys.h
7.228 KB
1 Apr 2024 3.23 PM
root / root
0644
parseerr.h
3.081 KB
1 Apr 2024 3.23 PM
root / root
0644
parsepos.h
5.568 KB
1 Apr 2024 3.23 PM
root / root
0644
platform.h
27.8 KB
1 Apr 2024 3.23 PM
root / root
0644
plurfmt.h
25.253 KB
1 Apr 2024 3.23 PM
root / root
0644
plurrule.h
20.637 KB
1 Apr 2024 3.23 PM
root / root
0644
ptypes.h
3.493 KB
1 Apr 2024 3.23 PM
root / root
0644
putil.h
6.319 KB
1 Apr 2024 3.23 PM
root / root
0644
rbbi.h
32.067 KB
1 Apr 2024 3.23 PM
root / root
0644
rbnf.h
49.921 KB
1 Apr 2024 3.23 PM
root / root
0644
rbtz.h
15.769 KB
1 Apr 2024 3.23 PM
root / root
0644
regex.h
84.454 KB
1 Apr 2024 3.23 PM
root / root
0644
region.h
9.196 KB
1 Apr 2024 3.23 PM
root / root
0644
reldatefmt.h
22.355 KB
1 Apr 2024 3.23 PM
root / root
0644
rep.h
9.377 KB
1 Apr 2024 3.23 PM
root / root
0644
resbund.h
18.105 KB
1 Apr 2024 3.23 PM
root / root
0644
schriter.h
6.104 KB
1 Apr 2024 3.23 PM
root / root
0644
scientificnumberformatter.h
6.443 KB
1 Apr 2024 3.23 PM
root / root
0644
search.h
22.237 KB
1 Apr 2024 3.23 PM
root / root
0644
selfmt.h
14.351 KB
1 Apr 2024 3.23 PM
root / root
0644
simpleformatter.h
12.596 KB
1 Apr 2024 3.23 PM
root / root
0644
simplenumberformatter.h
8.88 KB
1 Apr 2024 3.23 PM
root / root
0644
simpletz.h
45.648 KB
1 Apr 2024 3.23 PM
root / root
0644
smpdtfmt.h
71.846 KB
1 Apr 2024 3.23 PM
root / root
0644
sortkey.h
11.187 KB
1 Apr 2024 3.23 PM
root / root
0644
std_string.h
1.051 KB
1 Apr 2024 3.23 PM
root / root
0644
strenum.h
9.963 KB
1 Apr 2024 3.23 PM
root / root
0644
stringoptions.h
5.787 KB
1 Apr 2024 3.23 PM
root / root
0644
stringpiece.h
10.046 KB
1 Apr 2024 3.23 PM
root / root
0644
stringtriebuilder.h
15.5 KB
1 Apr 2024 3.23 PM
root / root
0644
stsearch.h
21.439 KB
1 Apr 2024 3.23 PM
root / root
0644
symtable.h
4.283 KB
1 Apr 2024 3.23 PM
root / root
0644
tblcoll.h
36.937 KB
1 Apr 2024 3.23 PM
root / root
0644
timezone.h
45.671 KB
1 Apr 2024 3.23 PM
root / root
0644
tmunit.h
3.397 KB
1 Apr 2024 3.23 PM
root / root
0644
tmutamt.h
4.911 KB
1 Apr 2024 3.23 PM
root / root
0644
tmutfmt.h
7.424 KB
1 Apr 2024 3.23 PM
root / root
0644
translit.h
65.835 KB
1 Apr 2024 3.23 PM
root / root
0644
tzfmt.h
42.957 KB
1 Apr 2024 3.23 PM
root / root
0644
tznames.h
16.85 KB
1 Apr 2024 3.23 PM
root / root
0644
tzrule.h
34.861 KB
1 Apr 2024 3.23 PM
root / root
0644
tztrans.h
6.131 KB
1 Apr 2024 3.23 PM
root / root
0644
ubidi.h
89.608 KB
1 Apr 2024 3.23 PM
root / root
0644
ubiditransform.h
12.705 KB
1 Apr 2024 3.23 PM
root / root
0644
ubrk.h
24.435 KB
1 Apr 2024 3.23 PM
root / root
0644
ucal.h
64.283 KB
1 Apr 2024 3.23 PM
root / root
0644
ucasemap.h
15.214 KB
1 Apr 2024 3.23 PM
root / root
0644
ucat.h
5.35 KB
1 Apr 2024 3.23 PM
root / root
0644
uchar.h
145.704 KB
1 Apr 2024 3.23 PM
root / root
0644
ucharstrie.h
22.561 KB
1 Apr 2024 3.23 PM
root / root
0644
ucharstriebuilder.h
7.483 KB
1 Apr 2024 3.23 PM
root / root
0644
uchriter.h
13.425 KB
1 Apr 2024 3.23 PM
root / root
0644
uclean.h
11.206 KB
1 Apr 2024 3.23 PM
root / root
0644
ucnv.h
83.457 KB
1 Apr 2024 3.23 PM
root / root
0644
ucnv_cb.h
6.584 KB
1 Apr 2024 3.23 PM
root / root
0644
ucnv_err.h
20.982 KB
1 Apr 2024 3.23 PM
root / root
0644
ucnvsel.h
6.241 KB
1 Apr 2024 3.23 PM
root / root
0644
ucol.h
62.697 KB
1 Apr 2024 3.23 PM
root / root
0644
ucoleitr.h
9.82 KB
1 Apr 2024 3.23 PM
root / root
0644
uconfig.h
12.311 KB
1 Apr 2024 3.23 PM
root / root
0644
ucpmap.h
5.541 KB
1 Apr 2024 3.23 PM
root / root
0644
ucptrie.h
22.515 KB
1 Apr 2024 3.23 PM
root / root
0644
ucsdet.h
14.69 KB
1 Apr 2024 3.23 PM
root / root
0644
ucurr.h
16.721 KB
1 Apr 2024 3.23 PM
root / root
0644
udat.h
62.355 KB
1 Apr 2024 3.23 PM
root / root
0644
udata.h
15.631 KB
1 Apr 2024 3.23 PM
root / root
0644
udateintervalformat.h
11.932 KB
1 Apr 2024 3.23 PM
root / root
0644
udatpg.h
30.132 KB
1 Apr 2024 3.23 PM
root / root
0644
udisplaycontext.h
5.941 KB
1 Apr 2024 3.23 PM
root / root
0644
udisplayoptions.h
8.86 KB
1 Apr 2024 3.23 PM
root / root
0644
uenum.h
7.794 KB
1 Apr 2024 3.23 PM
root / root
0644
ufieldpositer.h
4.407 KB
1 Apr 2024 3.23 PM
root / root
0644
uformattable.h
10.97 KB
1 Apr 2024 3.23 PM
root / root
0644
uformattednumber.h
8.087 KB
1 Apr 2024 3.23 PM
root / root
0644
uformattedvalue.h
12.255 KB
1 Apr 2024 3.23 PM
root / root
0644
ugender.h
2.057 KB
1 Apr 2024 3.23 PM
root / root
0644
uidna.h
33.427 KB
1 Apr 2024 3.23 PM
root / root
0644
uiter.h
22.753 KB
1 Apr 2024 3.23 PM
root / root
0644
uldnames.h
10.481 KB
1 Apr 2024 3.23 PM
root / root
0644
ulistformatter.h
10.784 KB
1 Apr 2024 3.23 PM
root / root
0644
uloc.h
54.663 KB
1 Apr 2024 3.23 PM
root / root
0644
ulocale.h
6.353 KB
1 Apr 2024 3.23 PM
root / root
0644
ulocbuilder.h
16.724 KB
1 Apr 2024 3.23 PM
root / root
0644
ulocdata.h
11.301 KB
1 Apr 2024 3.23 PM
root / root
0644
umachine.h
15 KB
1 Apr 2024 3.23 PM
root / root
0644
umisc.h
1.34 KB
1 Apr 2024 3.23 PM
root / root
0644
umsg.h
24.25 KB
1 Apr 2024 3.23 PM
root / root
0644
umutablecptrie.h
8.302 KB
1 Apr 2024 3.23 PM
root / root
0644
unifilt.h
3.995 KB
1 Apr 2024 3.23 PM
root / root
0644
unifunct.h
4.054 KB
1 Apr 2024 3.23 PM
root / root
0644
unimatch.h
6.098 KB
1 Apr 2024 3.23 PM
root / root
0644
unirepl.h
3.383 KB
1 Apr 2024 3.23 PM
root / root
0644
uniset.h
66.849 KB
1 Apr 2024 3.23 PM
root / root
0644
unistr.h
171.351 KB
1 Apr 2024 3.23 PM
root / root
0644
unorm.h
20.549 KB
1 Apr 2024 3.23 PM
root / root
0644
unorm2.h
25.713 KB
1 Apr 2024 3.23 PM
root / root
0644
unum.h
55.162 KB
1 Apr 2024 3.23 PM
root / root
0644
unumberformatter.h
19.681 KB
1 Apr 2024 3.23 PM
root / root
0644
unumberoptions.h
5.234 KB
1 Apr 2024 3.23 PM
root / root
0644
unumberrangeformatter.h
15.354 KB
1 Apr 2024 3.23 PM
root / root
0644
unumsys.h
7.256 KB
1 Apr 2024 3.23 PM
root / root
0644
uobject.h
10.661 KB
1 Apr 2024 3.23 PM
root / root
0644
upluralrules.h
8.786 KB
1 Apr 2024 3.23 PM
root / root
0644
uregex.h
71.991 KB
1 Apr 2024 3.23 PM
root / root
0644
uregion.h
9.812 KB
1 Apr 2024 3.23 PM
root / root
0644
ureldatefmt.h
16.979 KB
1 Apr 2024 3.23 PM
root / root
0644
urename.h
140.817 KB
1 Apr 2024 3.23 PM
root / root
0644
urep.h
5.378 KB
1 Apr 2024 3.23 PM
root / root
0644
ures.h
36.646 KB
1 Apr 2024 3.23 PM
root / root
0644
uscript.h
27.803 KB
1 Apr 2024 3.23 PM
root / root
0644
usearch.h
39.212 KB
1 Apr 2024 3.23 PM
root / root
0644
uset.h
45.613 KB
1 Apr 2024 3.23 PM
root / root
0644
usetiter.h
9.625 KB
1 Apr 2024 3.23 PM
root / root
0644
ushape.h
17.998 KB
1 Apr 2024 3.23 PM
root / root
0644
usimplenumberformatter.h
7.457 KB
1 Apr 2024 3.23 PM
root / root
0644
uspoof.h
80.317 KB
1 Apr 2024 3.23 PM
root / root
0644
usprep.h
8.186 KB
1 Apr 2024 3.23 PM
root / root
0644
ustdio.h
38.557 KB
1 Apr 2024 3.23 PM
root / root
0644
ustream.h
1.889 KB
1 Apr 2024 3.23 PM
root / root
0644
ustring.h
72.132 KB
1 Apr 2024 3.23 PM
root / root
0644
ustringtrie.h
3.148 KB
1 Apr 2024 3.23 PM
root / root
0644
utext.h
58.101 KB
1 Apr 2024 3.23 PM
root / root
0644
utf.h
7.868 KB
1 Apr 2024 3.23 PM
root / root
0644
utf16.h
23.35 KB
1 Apr 2024 3.23 PM
root / root
0644
utf32.h
0.745 KB
1 Apr 2024 3.23 PM
root / root
0644
utf8.h
30.832 KB
1 Apr 2024 3.23 PM
root / root
0644
utf_old.h
45.797 KB
1 Apr 2024 3.23 PM
root / root
0644
utmscale.h
13.776 KB
1 Apr 2024 3.23 PM
root / root
0644
utrace.h
17.183 KB
1 Apr 2024 3.23 PM
root / root
0644
utrans.h
25.544 KB
1 Apr 2024 3.23 PM
root / root
0644
utypes.h
31.062 KB
1 Apr 2024 3.23 PM
root / root
0644
uvernum.h
6.328 KB
1 Apr 2024 3.23 PM
root / root
0644
uversion.h
5.993 KB
1 Apr 2024 3.23 PM
root / root
0644
vtzone.h
20.691 KB
1 Apr 2024 3.23 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF