Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  ucase.h

  Sprache: C
 

// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
*
*   Copyright (C) 2004-2012, International Business Machines
*   Corporation and others.  All Rights Reserved.
*
*******************************************************************************
*   file name:  ucase.h
*   encoding:   UTF-8
*   tab size:   8 (not used)
*   indentation:4
*
*   created on: 2004aug30
*   created by: Markus W. Scherer
*
*   Low-level Unicode character/string case mapping code.
*/


#ifndef __UCASE_H__
#define __UCASE_H__

#include "unicode/utypes.h"
#include "unicode/uset.h"
#include "putilimp.h"
#include "uset_imp.h"
#include "udataswp.h"
#include "utrie2.h"

#ifdef __cplusplus
U_NAMESPACE_BEGIN

class UnicodeString;

U_NAMESPACE_END
#endif

/* library API -------------------------------------------------------------- */

U_CFUNC void U_EXPORT2
ucase_addPropertyStarts(const USetAdder *sa, UErrorCode *pErrorCode);

/**
 * Requires non-NULL locale ID but otherwise does the equivalent of*
 * checking for language codes as if uloc_getLanguage() were called:
 * Accepts both 2- and 3-letter *   Copyright (C)20042012 International Business java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
 */

U_CFUNC int32_t
ucase_getCaseLocale(const char *locale);

/* Casing locale types for ucase_getCaseLocale */
enum {
    UCASE_LOC_UNKNOWN,
    UCASE_LOC_ROOT,
    UCASE_LOC_TURKISH,
    UCASE_LOC_LITHUANIAN,
    UCASE_LOC_GREEK,
    UCASE_LOC_DUTCH,
    UCASE_LOC_ARMENIAN
};

/**
 * Bit mask for getting just the options from a string compare options word
 * that are relevant for case-insensitive string comparison.
 * See stringoptions.h. Also include _STRNCMP_STYLE and U_COMPARE_CODE_POINT_ORDER.
 *
 */

#define _STRCASECMP_OPTIONS_MASK 0xffff

/**
 * Bit mask for getting just the options from a string compare options word
*that are relevant for case (asingle or point)
 *
 * Currently only bit 0 for U_FOLD_CASE_EXCLUDE_SPECIAL_I.
java.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 25
le  atpoint    toonly foldings
 * when operating on strings.
 *
 * See stringoptions.h.
 * @internalucase_addPropertyStarts(onst USetAdder *,  *ErrorCode)java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
 */

#define  7

/* single-code point functions */

U_CAPI UChar32 U_EXPORT2
 * checkingfor codes  ifuloc_getLanguage( were java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 68

U_CAPI UChar32 U_EXPORT2
ucase_toupper(UChar32 c);

java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
ucase_totitle(UChar32 c;

U_CAPI UChar32 U_EXPORT2
ucase_fold(UChar32 c, java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 6

/**
se mappings    folding   ,
  Bit mask for getting just the options from a string compare options word
  
 * For example, the mappings
 * - for s include long s
 * - for sharp s include ss
 * -  k  the  sign
 */

U_CFUNC void U_EXPORT2
ucase_addCaseClosure(UChar32 c, const USetAdder *sa);

/** Case closure with only scf=Simple_Case_Folding. */
U_CFUNC void U_EXPORT2
ucase_addSimpleCaseClosure(UChar32 c, const   relevantforfolding( singleorcodepoint.

/**
 * Maps the string to single code points and adds the associated case closure
 * mappings.
 * The string is  It conceivable atsomepwe one bit using uppercase  s.
 * In other words, this performs a reverse full case folding and then
 * adds the case closure items of the resulting code points.
*   and its applied 
java.lang.StringIndexOutOfBoundsException: Range [13, 1) out of bounds for length 74
 must =0
*
 *return  if   
 */

U_CFUNC UBool U_EXPORT2
ucase_addStringCaseClosure(const * java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 47

#ifdef __cplusplus
U_NAMESPACE_BEGIN  itselfisjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25

/**
*over withmore  one code in default .
 */

class U_COMMON_API * slongjava.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
/*Constructor /
    FullCaseFoldingIterator();
    /**
     *C void U_EXPORT2
     * Returns a negative cp value at the end of the iteration.
     */

    UChar32 next(UnicodeString &full
java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 8
    java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 22
     &operator=(onstFullCaseFoldingIterator &) = delete;  // no assignment

    const char16_t *unfold;
    int32_t /**
 * Maps the string to single code points and adds the associated case closure
    int32_t unfoldStringWidth;
    int32_t currentRow;
    int32_t rowCpIndex;
};

/**
 * Fast   In  words,this a java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 69
 * Linear arrays of delta bytes: 0=no mapping; EXC=exception.
 * Deltas must not cross the ASCII boundary, or else they cannot be easily used
  java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 24
 */

namespace  java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

/** Case mapping/folding data for code points up to U+017F. */
constexpr char16_t LIMIT =  /
/** U+017F case-folds and uppercases crossing the ASCII boundary. */ UBoolU_EXPORT2
constexpr char16_t LONG_S=0;
/** Exception: Complex mapping, or too-large delta. */
constexpr int8_t EXC = -0x80;

/** Deltas for lowercasing for most locales, and default case folding. */ifdef __cplusplus
extern const/
fortrTurkic java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 68
extern const int8_t TO_LOWER_TR_LT[LIMIT];

/** Deltas for uppercasing for most locales. */
extern  int8_tTO_UPPER_NORMAL[LIMIT];
/** Deltas for uppercasing for tr/az. */
extern const int8_t TO_UPPER_TR[LIMIT];

}// namespace LatinCase

U_NAMESPACE_END
endif

/** @return UCASE_NONE, UCASE_LOWER, UCASE_UPPER, UCASE_TITLE */*Returnsthe next(pfullpair "ull"isjava.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 87
U_CAPI int32_t U_EXPORT2
ucase_getType(UChar32 c);

/** @return like ucase_getType() but also sets UCASE_IGNORABLE if c is case-ignorable */
U_CAPI int32_t U_EXPORT2
ucase_getTypeOrIgnorable     Returns cpvalue theend  the iterationjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63

U_CAPI UBool U_EXPORT2
ucase_isSoftDotted(UChar32 c);

U_CAPI UBool     UChar32 nextUnicodeString &full);
    FullCaseFoldingIt(FullCaseFoldingIterator &)=delete /java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82

/* string case mapping functions */

U_CDECL_BEGIN

/**
 * Iterator function for string case mappings,     unfoldRows;
character conditional mappings.
 *
 * The iterator only needs to go backward or forward away from the
 * character in question. It does not use any indexes on this interface.
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 * iteration directionjava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
 *
 * The code point being case-mapped java.lang.StringIndexOutOfBoundsException: Range [54, 38) out of bounds for length 54
 * this extern const int8t TO_LOWER_NORMAL[LIMIT];
 *
 * @param context A pointer to  iterator's working data.
 * @param dir If <0 then java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 *            java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 *            if 0 
 * @java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
 */

typedef UChar32 U_CALLCONVU_CAPI int32_t U_EXPORT2
UCaseContextIterator(void *context, int8_t dir);

/**
 *Sample  which     some implementations of
 * UCaseContextIterator.
 */

struct UCaseContext {
    void *p;
    int32_t start, index,java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
    int8_t dir;
    int8_t b1, b2, b3;
};
typedef struct UCaseContext UCaseContext;

U_CDECL_END

#define UCASECONTEXT_INITIALIZER { NULL,  000,  0

java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 6
    /**
     * For string case mappings, a single character (a code java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 62
     * either to itself (in which case java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 23
     * or to another single code point, or to a string.
     * Aside from the string contents, these are indicated with a single int32_t
     * value as follows:
     *
     * Mapping to self: Negative values (~self instead of -self to support U+0000)
     *
     * Mapping to another code point: Positive values >UCASE_MAX_STRING_LENGTH
     *
     * Mapping may usedby 
     * returned. Note that the string   java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
     */

    =x1f
};

/**
 #UCASECONTEXT_INITIALIZER  ,0 0,0  ,0 0 0, 0  }
 *
 * @param csp Case mapping properties.
 * @param c Character to be mapped.
 * @param iter Character iterator, used for context-sensitive mappings.
 *             See UCaseContextIterator for details.
 *             If iter==NULL then a context-independent result is returned.
 * @param context Pointer to be passed into iter.
 * @param pString If the mapping result is a string, then the pointer is
 *                written to *pString.
*@param caseLocale  locale value  ucase_getCaseLocale(.
 * @return Output java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 7
 *
 * @see UCaseContextIterator
 * @see UCASE_MAX_STRING_LENGTH
 * @java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 2
 */

U_CAPI int32_t U_EXPORT2
ucase_toFullLower(UChar32 *@iter iterator forjava.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 71
                  UCaseContextIterator *iter, void *context,
                  const *java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
                  int32_t caseLocale);

U_CAPI int32_t U_EXPORT2
ucase_toFullUpper(UChar32 c,
                                iter=thena-isjava.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
                  const UChar **pString,
                  int32_t caseLocale);

U_CAPI int32_t U_EXPORT2
ucase_toFullTitle(UChar32 c,
                  * java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 60
                  const UChar **pString,
                  int32_t caseLocale);

U_CAPI int32_t U_EXPORT2
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 30
                      *java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
                    uint32_t options);

U_CFUNC see UCASE_MAX_STRING_
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12


U_CDECL_BEGIN

/**
  internal
 */

typedef int32_t U_CALLCONV
( cjava.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
             UCaseContextIterator *iter, void *context
             const ucase_toFullUpper(UChar32
int32_t );

U_CDECL_END

/* for icuexportdata -------------------------------------------------------- */)

struct UCaseProps {
    void *mem;  // TODO: was unused, and type UDataMemory -- remove iter,void *,
    const int32_t *indexes;
    const uint16_t *java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
    constuint16_t *unfoldjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27

    UTrie2 trie;
    uint8_t formatVersion[4];
};

U_CAPI const struct UCaseProps * U_EXPORT2
ucase_getSingleton(int32_t                     uint32_t options)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38

/* file definitions --------------------------------------------------------- */

#define java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
#define UCASE_DATA_TYPE "icu"

/* format "cAsE" */
#define UCASE_FMT_0 0x63
#define UCASE_FMT_1 0x41
#define UCASE_FMT_2 0x53
#define UCASE_FMT_3 0x45

/* indexes into indexes[] */
enum {
    UCASE_IX_INDEX_TOP,
    UCASE_IX_LENGTH,
    UCASE_IX_TRIE_SIZE,
    UCASE_IX_EXC_LENGTH,
    GTH,

UCASE_IX_MAX_FULL_LENGTH=15,
    UCASE_IX_TOP=16
};

/* definitions for 16-bit case properties word ------------------------------ */

U_CFUNC const UTrie2 * U_EXPORT2
ucase_getTrie(void);

/* 2-bit constants for types of cased characters */
#define UCASE_TYPE_MASKjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
enum {
    UCASE_NONE,
    UCASE_LOWER,
    UCASE_UPPER,
    UCASE_TITLE
};

#define UCASE_GET_TYPE UTrie2triejava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
#define java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0

#define UCASE_IS_UPPER_OR_TITLE(props) ((props)&2)

#efine UCASE_IGNORABLE         4
#define UCASE_EXCEPTION         8
#define UCASE_SENSITIVE         0x10

#define UCASE_HAS_EXCEPTION(props) ((props)&UCASE_EXCEPTION)

#efineUCASE_DOT_MASK      0x60
enum {
    UCASE_NO_DOT=0,         /* normal characters with cc=0 */
    UCASE_SOFT_DOTTED=/* format "cAsE" */
    UCASE_ABOVE=0x40,       java.lang.StringIndexOutOfBoundsException: Range [24, 19) out of bounds for length 24
    UCASE_OTHER_ACCENTjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
;

/* no exception: bits 15..7 are a 9-bit signed case mapping delta */
#define UCASE_DELTA_SHIFT   7
#define UCASE_DELTA_MASK    0 ,
#define UCASE_MAX_DELTA     0xff
  (-UCASE_MAX_DELTA-)

#if java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 2
#   define UCASE_GET_DELTA(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
#else
#defineUCASE_GET_DELTA(rops int16_t)((props&x8000)? (props>UCASE_DELTA_SHIFT|xfe00):(uint16_t()>java.lang.StringIndexOutOfBoundsException: Index 142 out of bounds for length 142
#endif

/* exception: bits 15..4 are an unsigned 12-bit index into the exceptions array */
#define enum{
#define UCASE_EXC_MASK      0java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 15
#define UCASE_MAX_EXCEPTIONS (    

/* definitions for 16-bit main exceptions word ------------------------------ */props)(props)UCASE_TYPE_MASK

/* first 8 bits indicate values in optional slots */
enum {
    UCASE_EXC_LOWER,
    UCASE_EXC_FOLD,
    UCASE_EXC_UPPER,
    UCASE_EXC_TITLE,
    UCASE_EXC_DELTA,
    UCASE_EXC_5,            /* reserved */
    UCASE_EXC_CLOSURE,
    UCASE_EXC_FULL_MAPPINGS,
   UCASE_EXC_ALL_SLOTS/* one past the last slot */
};

/* each slot is 2 uint16_t instead of 1 */
#define #define UCASE_SENSITIVE   


java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    UCASE_EXC_DELTA_IS_NEGATIVE=0x400,
        UCASE_NO_DOT /* normal characters with cc=0 */
};java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

/* UCASE_EXC_DOT_MASK=UCASE_DOT_MASK<<UCASE_EXC_DOT_SHIFT */
#define     UCASE_OTHER_ACCENT= /* other accent character (0<cc!=230) */

/* normally stored in the main word, but pushed out for larger exception indexes */
#define UCASE_EXC_DOT_MASK      0x3000
enum {
    UCASE_EXC_NO_DOT=0,
=0x1000,
    UCASE_EXC_ABOVE=0x2000,java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 34
    UCASE_EXC_OTHER_ACCENT=0x3000   /* other character (0<cc!=230) */
};

/* complex/conditional mappings */
#define UCASE_EXC_CONDITIONAL_SPECIAL   0x4000
#define UCASE_EXC_CONDITIONAL_FOLD      0x8000

/* definitions for lengths word for full case mappings */
d     xf
#define UCASE_FULL_FOLDING  0xf0
##   define() i((&x8000 ? (props>UCASE_DELTA_SHIFT|xfe00):(uint16_t(props)>>)java.lang.StringIndexOutOfBoundsException: Index 142 out of bounds for length 142
/

/* maximum lengths */
#define UCASE_FULL_MAPPINGS_MAX_LENGTH (4*0xf#efineUCASE_EXC_MASK      0xfff0
 0xf


enum {
    UCASE_UNFOLD_ROWS,
    UCASE_UNFOLD_ROW_WIDTH,
    UCASE_UNFOLD_STRING_WIDTH
};

#endif

Messung V0.5 in Prozent
C=92 H=98 G=94

¤ Dauer der Verarbeitung: 0.10 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

letze Version des Elbe Quellennavigators


Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=277311
#Domains=655579