os/textandloc/fontservices/textshaperplugin/IcuSource/common/uset_imp.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
*******************************************************************************
sl@0
     3
*
sl@0
     4
*   Copyright (C) 2004-2005, International Business Machines
sl@0
     5
*   Corporation and others.  All Rights Reserved.
sl@0
     6
*
sl@0
     7
*******************************************************************************
sl@0
     8
*   file name:  uset_imp.h
sl@0
     9
*   encoding:   US-ASCII
sl@0
    10
*   tab size:   8 (not used)
sl@0
    11
*   indentation:4
sl@0
    12
*
sl@0
    13
*   created on: 2004sep07
sl@0
    14
*   created by: Markus W. Scherer
sl@0
    15
*
sl@0
    16
*   Internal USet definitions.
sl@0
    17
*/
sl@0
    18
sl@0
    19
#ifndef __USET_IMP_H__
sl@0
    20
#define __USET_IMP_H__
sl@0
    21
sl@0
    22
#include "unicode/utypes.h"
sl@0
    23
#include "unicode/uset.h"
sl@0
    24
sl@0
    25
U_CDECL_BEGIN
sl@0
    26
sl@0
    27
typedef void U_CALLCONV
sl@0
    28
USetAdd(USet *set, UChar32 c);
sl@0
    29
sl@0
    30
typedef void U_CALLCONV
sl@0
    31
USetAddRange(USet *set, UChar32 start, UChar32 end);
sl@0
    32
sl@0
    33
typedef void U_CALLCONV
sl@0
    34
USetAddString(USet *set, const UChar *str, int32_t length);
sl@0
    35
sl@0
    36
typedef void U_CALLCONV
sl@0
    37
USetRemove(USet *set, UChar32 c);
sl@0
    38
sl@0
    39
/**
sl@0
    40
 * Interface for adding items to a USet, to keep low-level code from
sl@0
    41
 * statically depending on the USet implementation.
sl@0
    42
 * Calls will look like sa->add(sa->set, c);
sl@0
    43
 */
sl@0
    44
struct USetAdder {
sl@0
    45
    USet *set;
sl@0
    46
    USetAdd *add;
sl@0
    47
    USetAddRange *addRange;
sl@0
    48
    USetAddString *addString;
sl@0
    49
    USetRemove *remove;
sl@0
    50
};
sl@0
    51
typedef struct USetAdder USetAdder;
sl@0
    52
sl@0
    53
U_CDECL_END
sl@0
    54
sl@0
    55
/**
sl@0
    56
 * Get the set of "white space" characters in the sense of ICU rule
sl@0
    57
 * parsers.  Caller must close/delete result.
sl@0
    58
 * Equivalent to the set of characters with the Pattern_White_Space Unicode property.
sl@0
    59
 * Stable set of characters, won't change.
sl@0
    60
 * See UAX #31 Identifier and Pattern Syntax: http://www.unicode.org/reports/tr31/
sl@0
    61
 * @internal
sl@0
    62
 */
sl@0
    63
U_CAPI USet* U_EXPORT2
sl@0
    64
uprv_openRuleWhiteSpaceSet(UErrorCode* ec);
sl@0
    65
sl@0
    66
#endif
sl@0
    67