404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.17.71.93: ~ $
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
******************************************************************************
*
*   Copyright (C) 1999-2015, International Business Machines
*   Corporation and others.  All Rights Reserved.
*
******************************************************************************
*   file name:  umachine.h
*   encoding:   UTF-8
*   tab size:   8 (not used)
*   indentation:4
*
*   created on: 1999sep13
*   created by: Markus W. Scherer
*
*   This file defines basic types and constants for ICU to be
*   platform-independent. umachine.h and utf.h are included into
*   utypes.h to provide all the general definitions for ICU.
*   All of these definitions used to be in utypes.h before
*   the UTF-handling macros made this unmaintainable.
*/

#ifndef __UMACHINE_H__
#define __UMACHINE_H__


/**
 * \file
 * \brief Basic types and constants for UTF
 *
 * <h2> Basic types and constants for UTF </h2>
 *   This file defines basic types and constants for utf.h to be
 *   platform-independent. umachine.h and utf.h are included into
 *   utypes.h to provide all the general definitions for ICU.
 *   All of these definitions used to be in utypes.h before
 *   the UTF-handling macros made this unmaintainable.
 *
 */
/*==========================================================================*/
/* Include platform-dependent definitions                                   */
/* which are contained in the platform-specific file platform.h             */
/*==========================================================================*/

#include "unicode/ptypes.h" /* platform.h is included in ptypes.h */

/*
 * ANSI C headers:
 * stddef.h defines wchar_t
 */
#include <stddef.h>

/*==========================================================================*/
/* For C wrappers, we use the symbol U_STABLE.                                */
/* This works properly if the includer is C or C++.                         */
/* Functions are declared   U_STABLE return-type U_EXPORT2 function-name()... */
/*==========================================================================*/

/**
 * \def U_CFUNC
 * This is used in a declaration of a library private ICU C function.
 * @stable ICU 2.4
 */

/**
 * \def U_CDECL_BEGIN
 * This is used to begin a declaration of a library private ICU C API.
 * @stable ICU 2.4
 */

/**
 * \def U_CDECL_END
 * This is used to end a declaration of a library private ICU C API
 * @stable ICU 2.4
 */

#ifdef __cplusplus
#   define U_CFUNC extern "C"
#   define U_CDECL_BEGIN extern "C" {
#   define U_CDECL_END   }
#else
#   define U_CFUNC extern
#   define U_CDECL_BEGIN
#   define U_CDECL_END
#endif

#ifndef U_ATTRIBUTE_DEPRECATED
/**
 * \def U_ATTRIBUTE_DEPRECATED
 *  This is used for GCC specific attributes
 * @internal
 */
#if U_GCC_MAJOR_MINOR >= 302
#    define U_ATTRIBUTE_DEPRECATED __attribute__ ((deprecated))
/**
 * \def U_ATTRIBUTE_DEPRECATED
 * This is used for Visual C++ specific attributes 
 * @internal
 */
#elif defined(_MSC_VER) && (_MSC_VER >= 1400)
#    define U_ATTRIBUTE_DEPRECATED __declspec(deprecated)
#else
#    define U_ATTRIBUTE_DEPRECATED
#endif
#endif

/** This is used to declare a function as a public ICU C API @stable ICU 2.0*/
#define U_CAPI U_CFUNC U_EXPORT
/** This is used to declare a function as a stable public ICU C API*/
#define U_STABLE U_CAPI
/** This is used to declare a function as a draft public ICU C API  */
#define U_DRAFT  U_CAPI
/** This is used to declare a function as a deprecated public ICU C API  */
#define U_DEPRECATED U_CAPI U_ATTRIBUTE_DEPRECATED
/** This is used to declare a function as an obsolete public ICU C API  */
#define U_OBSOLETE U_CAPI
/** This is used to declare a function as an internal ICU C API  */
#define U_INTERNAL U_CAPI

/**
 * \def U_OVERRIDE
 * Defined to the C++11 "override" keyword if available.
 * Denotes a class or member which is an override of the base class.
 * May result in an error if it applied to something not an override.
 * @internal
 */

/**
 * \def U_FINAL
 * Defined to the C++11 "final" keyword if available.
 * Denotes a class or member which may not be overridden in subclasses.
 * May result in an error if subclasses attempt to override.
 * @internal
 */

#if U_CPLUSPLUS_VERSION >= 11
/* C++11 */
#ifndef U_OVERRIDE
#define U_OVERRIDE override
#endif
#ifndef U_FINAL
#define U_FINAL final
#endif
#else
/* not C++11 - define to nothing */
#ifndef U_OVERRIDE
#define U_OVERRIDE
#endif
#ifndef U_FINAL
#define U_FINAL
#endif
#endif

/*==========================================================================*/
/* limits for int32_t etc., like in POSIX inttypes.h                        */
/*==========================================================================*/

#ifndef INT8_MIN
/** The smallest value an 8 bit signed integer can hold @stable ICU 2.0 */
#   define INT8_MIN        ((int8_t)(-128))
#endif
#ifndef INT16_MIN
/** The smallest value a 16 bit signed integer can hold @stable ICU 2.0 */
#   define INT16_MIN       ((int16_t)(-32767-1))
#endif
#ifndef INT32_MIN
/** The smallest value a 32 bit signed integer can hold @stable ICU 2.0 */
#   define INT32_MIN       ((int32_t)(-2147483647-1))
#endif

#ifndef INT8_MAX
/** The largest value an 8 bit signed integer can hold @stable ICU 2.0 */
#   define INT8_MAX        ((int8_t)(127))
#endif
#ifndef INT16_MAX
/** The largest value a 16 bit signed integer can hold @stable ICU 2.0 */
#   define INT16_MAX       ((int16_t)(32767))
#endif
#ifndef INT32_MAX
/** The largest value a 32 bit signed integer can hold @stable ICU 2.0 */
#   define INT32_MAX       ((int32_t)(2147483647))
#endif

#ifndef UINT8_MAX
/** The largest value an 8 bit unsigned integer can hold @stable ICU 2.0 */
#   define UINT8_MAX       ((uint8_t)(255U))
#endif
#ifndef UINT16_MAX
/** The largest value a 16 bit unsigned integer can hold @stable ICU 2.0 */
#   define UINT16_MAX      ((uint16_t)(65535U))
#endif
#ifndef UINT32_MAX
/** The largest value a 32 bit unsigned integer can hold @stable ICU 2.0 */
#   define UINT32_MAX      ((uint32_t)(4294967295U))
#endif

#if defined(U_INT64_T_UNAVAILABLE)
# error int64_t is required for decimal format and rule-based number format.
#else
# ifndef INT64_C
/**
 * Provides a platform independent way to specify a signed 64-bit integer constant.
 * note: may be wrong for some 64 bit platforms - ensure your compiler provides INT64_C
 * @stable ICU 2.8
 */
#   define INT64_C(c) c ## LL
# endif
# ifndef UINT64_C
/**
 * Provides a platform independent way to specify an unsigned 64-bit integer constant.
 * note: may be wrong for some 64 bit platforms - ensure your compiler provides UINT64_C
 * @stable ICU 2.8
 */
#   define UINT64_C(c) c ## ULL
# endif
# ifndef U_INT64_MIN
/** The smallest value a 64 bit signed integer can hold @stable ICU 2.8 */
#     define U_INT64_MIN       ((int64_t)(INT64_C(-9223372036854775807)-1))
# endif
# ifndef U_INT64_MAX
/** The largest value a 64 bit signed integer can hold @stable ICU 2.8 */
#     define U_INT64_MAX       ((int64_t)(INT64_C(9223372036854775807)))
# endif
# ifndef U_UINT64_MAX
/** The largest value a 64 bit unsigned integer can hold @stable ICU 2.8 */
#     define U_UINT64_MAX      ((uint64_t)(UINT64_C(18446744073709551615)))
# endif
#endif

/*==========================================================================*/
/* Boolean data type                                                        */
/*==========================================================================*/

/** The ICU boolean type @stable ICU 2.0 */
typedef int8_t UBool;

#ifndef TRUE
/** The TRUE value of a UBool @stable ICU 2.0 */
#   define TRUE  1
#endif
#ifndef FALSE
/** The FALSE value of a UBool @stable ICU 2.0 */
#   define FALSE 0
#endif


/*==========================================================================*/
/* Unicode data types                                                       */
/*==========================================================================*/

/* wchar_t-related definitions -------------------------------------------- */

/*
 * \def U_WCHAR_IS_UTF16
 * Defined if wchar_t uses UTF-16.
 *
 * @stable ICU 2.0
 */
/*
 * \def U_WCHAR_IS_UTF32
 * Defined if wchar_t uses UTF-32.
 *
 * @stable ICU 2.0
 */
#if !defined(U_WCHAR_IS_UTF16) && !defined(U_WCHAR_IS_UTF32)
#   ifdef __STDC_ISO_10646__
#       if (U_SIZEOF_WCHAR_T==2)
#           define U_WCHAR_IS_UTF16
#       elif (U_SIZEOF_WCHAR_T==4)
#           define  U_WCHAR_IS_UTF32
#       endif
#   elif defined __UCS2__
#       if (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400) && (U_SIZEOF_WCHAR_T==2)
#           define U_WCHAR_IS_UTF16
#       endif
#   elif defined(__UCS4__) || (U_PLATFORM == U_PF_OS400 && defined(__UTF32__))
#       if (U_SIZEOF_WCHAR_T==4)
#           define U_WCHAR_IS_UTF32
#       endif
#   elif U_PLATFORM_IS_DARWIN_BASED || (U_SIZEOF_WCHAR_T==4 && U_PLATFORM_IS_LINUX_BASED)
#       define U_WCHAR_IS_UTF32
#   elif U_PLATFORM_HAS_WIN32_API
#       define U_WCHAR_IS_UTF16
#   endif
#endif

/* UChar and UChar32 definitions -------------------------------------------- */

/** Number of bytes in a UChar. @stable ICU 2.0 */
#define U_SIZEOF_UCHAR 2

/**
 * \def U_CHAR16_IS_TYPEDEF
 * If 1, then char16_t is a typedef and not a real type (yet)
 * @internal
 */
#if (U_PLATFORM == U_PF_AIX) && defined(__cplusplus) &&(U_CPLUSPLUS_VERSION < 11)
// for AIX, uchar.h needs to be included
# include <uchar.h>
# define U_CHAR16_IS_TYPEDEF 1
#else
# define U_CHAR16_IS_TYPEDEF 0
#endif


/**
 * \var UChar
 *
 * The base type for UTF-16 code units and pointers.
 * Unsigned 16-bit integer.
 * Starting with ICU 59, C++ API uses char16_t directly, while C API continues to use UChar.
 *
 * UChar is configurable by defining the macro UCHAR_TYPE
 * on the preprocessor or compiler command line:
 * -DUCHAR_TYPE=uint16_t or -DUCHAR_TYPE=wchar_t (if U_SIZEOF_WCHAR_T==2) etc.
 * (The UCHAR_TYPE can also be #defined earlier in this file, for outside the ICU library code.)
 * This is for transitional use from application code that uses uint16_t or wchar_t for UTF-16.
 *
 * The default is UChar=char16_t.
 *
 * C++11 defines char16_t as bit-compatible with uint16_t, but as a distinct type.
 *
 * In C, char16_t is a simple typedef of uint_least16_t.
 * ICU requires uint_least16_t=uint16_t for data memory mapping.
 * On macOS, char16_t is not available because the uchar.h standard header is missing.
 *
 * @stable ICU 4.4
 */

#if 1
    // #if 1 is normal. UChar defaults to char16_t in C++.
    // For configuration testing of UChar=uint16_t temporarily change this to #if 0.
    // The intltest Makefile #defines UCHAR_TYPE=char16_t,
    // so we only #define it to uint16_t if it is undefined so far.
#elif !defined(UCHAR_TYPE)
#   define UCHAR_TYPE uint16_t
#endif

#if defined(U_COMBINED_IMPLEMENTATION) || defined(U_COMMON_IMPLEMENTATION) || \
        defined(U_I18N_IMPLEMENTATION) || defined(U_IO_IMPLEMENTATION)
    // Inside the ICU library code, never configurable.
    typedef char16_t UChar;
#elif defined(UCHAR_TYPE)
    typedef UCHAR_TYPE UChar;
#elif defined(__cplusplus)
    typedef char16_t UChar;
#else
    typedef uint16_t UChar;
#endif

/**
 * \var OldUChar
 * Default ICU 58 definition of UChar.
 * A base type for UTF-16 code units and pointers.
 * Unsigned 16-bit integer.
 *
 * Define OldUChar to be wchar_t if that is 16 bits wide.
 * If wchar_t is not 16 bits wide, then define UChar to be uint16_t.
 *
 * This makes the definition of OldUChar platform-dependent
 * but allows direct string type compatibility with platforms with
 * 16-bit wchar_t types.
 *
 * This is how UChar was defined in ICU 58, for transition convenience.
 * Exception: ICU 58 UChar was defined to UCHAR_TYPE if that macro was defined.
 * The current UChar responds to UCHAR_TYPE but OldUChar does not.
 *
 * @draft ICU 59
 */
#if U_SIZEOF_WCHAR_T==2
    typedef wchar_t OldUChar;
#elif defined(__CHAR16_TYPE__)
    typedef __CHAR16_TYPE__ OldUChar;
#else
    typedef uint16_t OldUChar;
#endif

/**
 * Define UChar32 as a type for single Unicode code points.
 * UChar32 is a signed 32-bit integer (same as int32_t).
 *
 * The Unicode code point range is 0..0x10ffff.
 * All other values (negative or >=0x110000) are illegal as Unicode code points.
 * They may be used as sentinel values to indicate "done", "error"
 * or similar non-code point conditions.
 *
 * Before ICU 2.4 (Jitterbug 2146), UChar32 was defined
 * to be wchar_t if that is 32 bits wide (wchar_t may be signed or unsigned)
 * or else to be uint32_t.
 * That is, the definition of UChar32 was platform-dependent.
 *
 * @see U_SENTINEL
 * @stable ICU 2.4
 */
typedef int32_t UChar32;

/**
 * This value is intended for sentinel values for APIs that
 * (take or) return single code points (UChar32).
 * It is outside of the Unicode code point range 0..0x10ffff.
 * 
 * For example, a "done" or "error" value in a new API
 * could be indicated with U_SENTINEL.
 *
 * ICU APIs designed before ICU 2.4 usually define service-specific "done"
 * values, mostly 0xffff.
 * Those may need to be distinguished from
 * actual U+ffff text contents by calling functions like
 * CharacterIterator::hasNext() or UnicodeString::length().
 *
 * @return -1
 * @see UChar32
 * @stable ICU 2.4
 */
#define U_SENTINEL (-1)

#include "unicode/urename.h"

#endif

Filemanager

Name Type Size Permission Actions
alphaindex.h File 26.27 KB 0644
appendable.h File 8.43 KB 0644
basictz.h File 8.84 KB 0644
brkiter.h File 27.54 KB 0644
bytestream.h File 9.59 KB 0644
bytestrie.h File 19.26 KB 0644
bytestriebuilder.h File 7.1 KB 0644
calendar.h File 105.35 KB 0644
caniter.h File 7.35 KB 0644
casemap.h File 25.31 KB 0644
char16ptr.h File 7.29 KB 0644
chariter.h File 24 KB 0644
choicfmt.h File 23.85 KB 0644
coleitr.h File 13.7 KB 0644
coll.h File 55.61 KB 0644
compactdecimalformat.h File 16.58 KB 0644
curramt.h File 3.69 KB 0644
currpinf.h File 7.08 KB 0644
currunit.h File 3.49 KB 0644
datefmt.h File 40.18 KB 0644
dbbi.h File 1.11 KB 0644
dcfmtsym.h File 17.66 KB 0644
decimfmt.h File 89.73 KB 0644
docmain.h File 6.56 KB 0644
dtfmtsym.h File 37.64 KB 0644
dtintrv.h File 3.76 KB 0644
dtitvfmt.h File 42.87 KB 0644
dtitvinf.h File 18.46 KB 0644
dtptngen.h File 23.72 KB 0644
dtrule.h File 8.62 KB 0644
edits.h File 15.54 KB 0644
enumset.h File 2.05 KB 0644
errorcode.h File 4.78 KB 0644
fieldpos.h File 8.63 KB 0644
filteredbrk.h File 5.46 KB 0644
fmtable.h File 24.39 KB 0644
format.h File 12.44 KB 0644
fpositer.h File 3.14 KB 0644
gender.h File 3.18 KB 0644
gregocal.h File 31.57 KB 0644
icudataver.h File 1.03 KB 0644
icuplug.h File 11.86 KB 0644
idna.h File 12.63 KB 0644
listformatter.h File 4.98 KB 0644
localpointer.h File 18.19 KB 0644
locdspnm.h File 7.05 KB 0644
locid.h File 31.4 KB 0644
measfmt.h File 11.25 KB 0644
measunit.h File 37.74 KB 0644
measure.h File 4.26 KB 0644
messagepattern.h File 33.64 KB 0644
msgfmt.h File 43.16 KB 0644
normalizer2.h File 33.97 KB 0644
normlzr.h File 30.74 KB 0644
nounit.h File 2.6 KB 0644
numberformatter.h File 64.98 KB 0644
numfmt.h File 47.76 KB 0644
numsys.h File 6.73 KB 0644
parseerr.h File 3.08 KB 0644
parsepos.h File 5.45 KB 0644
platform.h File 27.71 KB 0644
plurfmt.h File 25.66 KB 0644
plurrule.h File 18.34 KB 0644
ptypes.h File 3.47 KB 0644
putil.h File 6.34 KB 0644
rbbi.h File 27.09 KB 0644
rbnf.h File 49.76 KB 0644
rbtz.h File 15.47 KB 0644
regex.h File 84.91 KB 0644
region.h File 9.12 KB 0644
reldatefmt.h File 14.3 KB 0644
rep.h File 9.5 KB 0644
resbund.h File 18.01 KB 0644
schriter.h File 6.26 KB 0644
scientificnumberformatter.h File 6.59 KB 0644
search.h File 22.21 KB 0644
selfmt.h File 14.24 KB 0644
simpleformatter.h File 11.43 KB 0644
simpletz.h File 45.24 KB 0644
smpdtfmt.h File 70.09 KB 0644
sortkey.h File 11.12 KB 0644
std_string.h File 1015 B 0644
strenum.h File 10.04 KB 0644
stringoptions.h File 5.89 KB 0644
stringpiece.h File 6.46 KB 0644
stringtriebuilder.h File 15.2 KB 0644
stsearch.h File 21.29 KB 0644
symtable.h File 4.21 KB 0644
tblcoll.h File 36.4 KB 0644
timezone.h File 40.83 KB 0644
tmunit.h File 3.29 KB 0644
tmutamt.h File 4.8 KB 0644
tmutfmt.h File 7.79 KB 0644
translit.h File 54.53 KB 0644
tzfmt.h File 42.81 KB 0644
tznames.h File 16.79 KB 0644
tzrule.h File 35.32 KB 0644
tztrans.h File 6.07 KB 0644
ubidi.h File 89.28 KB 0644
ubiditransform.h File 12.71 KB 0644
ubrk.h File 24.08 KB 0644
ucal.h File 54.56 KB 0644
ucasemap.h File 15.18 KB 0644
ucat.h File 5.36 KB 0644
uchar.h File 131.61 KB 0644
ucharstrie.h File 21.06 KB 0644
ucharstriebuilder.h File 7.14 KB 0644
uchriter.h File 13.14 KB 0644
uclean.h File 11.24 KB 0644
ucnv.h File 83.06 KB 0644
ucnv_cb.h File 6.59 KB 0644
ucnv_err.h File 20.98 KB 0644
ucnvsel.h File 6.14 KB 0644
ucol.h File 61.36 KB 0644
ucoleitr.h File 9.46 KB 0644
uconfig.h File 11.91 KB 0644
ucsdet.h File 14.67 KB 0644
ucurr.h File 15.15 KB 0644
udat.h File 60.13 KB 0644
udata.h File 15.53 KB 0644
udateintervalformat.h File 6.79 KB 0644
udatpg.h File 24.11 KB 0644
udisplaycontext.h File 5.89 KB 0644
uenum.h File 7.9 KB 0644
ufieldpositer.h File 4.36 KB 0644
uformattable.h File 10.94 KB 0644
ugender.h File 2 KB 0644
uidna.h File 33.37 KB 0644
uiter.h File 22.77 KB 0644
uldnames.h File 10.45 KB 0644
ulistformatter.h File 4.54 KB 0644
uloc.h File 50.75 KB 0644
ulocdata.h File 11.26 KB 0644
umachine.h File 13.1 KB 0644
umisc.h File 1.33 KB 0644
umsg.h File 24.23 KB 0644
unifilt.h File 3.63 KB 0644
unifunct.h File 3.98 KB 0644
unimatch.h File 6.04 KB 0644
unirepl.h File 3.32 KB 0644
uniset.h File 63.98 KB 0644
unistr.h File 175.65 KB 0644
unorm.h File 20.45 KB 0644
unorm2.h File 24.66 KB 0644
unum.h File 52.49 KB 0644
unumsys.h File 7.14 KB 0644
uobject.h File 10.72 KB 0644
upluralrules.h File 6.77 KB 0644
uregex.h File 72.05 KB 0644
uregion.h File 9.84 KB 0644
ureldatefmt.h File 12.22 KB 0644
urename.h File 124.49 KB 0644
urep.h File 5.38 KB 0644
ures.h File 36.52 KB 0644
uscript.h File 25.91 KB 0644
usearch.h File 38.14 KB 0644
uset.h File 39.91 KB 0644
usetiter.h File 9.49 KB 0644
ushape.h File 18 KB 0644
uspoof.h File 64.9 KB 0644
usprep.h File 8.13 KB 0644
ustdio.h File 38.54 KB 0644
ustream.h File 1.8 KB 0644
ustring.h File 72.52 KB 0644
ustringtrie.h File 3.15 KB 0644
utext.h File 58.11 KB 0644
utf.h File 7.86 KB 0644
utf16.h File 22.49 KB 0644
utf32.h File 763 B 0644
utf8.h File 28.16 KB 0644
utf_old.h File 43.78 KB 0644
utmscale.h File 13.78 KB 0644
utrace.h File 13.89 KB 0644
utrans.h File 25.53 KB 0644
utypes.h File 29.92 KB 0644
uvernum.h File 5.69 KB 0644
uversion.h File 6.4 KB 0644
vtzone.h File 20.17 KB 0644