intl/icu/source/common/uset_imp.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /*
michael@0 2 *******************************************************************************
michael@0 3 *
michael@0 4 * Copyright (C) 2004-2007, International Business Machines
michael@0 5 * Corporation and others. All Rights Reserved.
michael@0 6 *
michael@0 7 *******************************************************************************
michael@0 8 * file name: uset_imp.h
michael@0 9 * encoding: US-ASCII
michael@0 10 * tab size: 8 (not used)
michael@0 11 * indentation:4
michael@0 12 *
michael@0 13 * created on: 2004sep07
michael@0 14 * created by: Markus W. Scherer
michael@0 15 *
michael@0 16 * Internal USet definitions.
michael@0 17 */
michael@0 18
michael@0 19 #ifndef __USET_IMP_H__
michael@0 20 #define __USET_IMP_H__
michael@0 21
michael@0 22 #include "unicode/utypes.h"
michael@0 23 #include "unicode/uset.h"
michael@0 24
michael@0 25 U_CDECL_BEGIN
michael@0 26
michael@0 27 typedef void U_CALLCONV
michael@0 28 USetAdd(USet *set, UChar32 c);
michael@0 29
michael@0 30 typedef void U_CALLCONV
michael@0 31 USetAddRange(USet *set, UChar32 start, UChar32 end);
michael@0 32
michael@0 33 typedef void U_CALLCONV
michael@0 34 USetAddString(USet *set, const UChar *str, int32_t length);
michael@0 35
michael@0 36 typedef void U_CALLCONV
michael@0 37 USetRemove(USet *set, UChar32 c);
michael@0 38
michael@0 39 typedef void U_CALLCONV
michael@0 40 USetRemoveRange(USet *set, UChar32 start, UChar32 end);
michael@0 41
michael@0 42 /**
michael@0 43 * Interface for adding items to a USet, to keep low-level code from
michael@0 44 * statically depending on the USet implementation.
michael@0 45 * Calls will look like sa->add(sa->set, c);
michael@0 46 */
michael@0 47 struct USetAdder {
michael@0 48 USet *set;
michael@0 49 USetAdd *add;
michael@0 50 USetAddRange *addRange;
michael@0 51 USetAddString *addString;
michael@0 52 USetRemove *remove;
michael@0 53 USetRemoveRange *removeRange;
michael@0 54 };
michael@0 55 typedef struct USetAdder USetAdder;
michael@0 56
michael@0 57 U_CDECL_END
michael@0 58
michael@0 59 #endif
michael@0 60

mercurial