1/**
2*******************************************************************************
3* Copyright (C) 1996-2005, International Business Machines Corporation and    *
4* others. All Rights Reserved.                                                *
5*******************************************************************************
6*
7*
8*******************************************************************************
9*/
10
11package libcore.icu;
12
13/**
14* Package static class for declaring all native methods for collation use.
15* @author syn wee quek
16* @internal ICU 2.4
17*/
18public final class NativeCollation {
19    private NativeCollation() {
20    }
21
22    // Collator.
23    public static native void closeCollator(long address);
24    public static native int compare(long address, String source, String target);
25    public static native int getAttribute(long address, int type);
26    public static native int getCollationElementIterator(long address, String source);
27    public static native String getRules(long address);
28    public static native byte[] getSortKey(long address, String source);
29    public static native long openCollator(String locale);
30    public static native long openCollatorFromRules(String rules, int normalizationMode, int collationStrength);
31    public static native long safeClone(long address);
32    public static native void setAttribute(long address, int type, int value);
33
34    // CollationElementIterator.
35    public static native void closeElements(long address);
36    public static native int getMaxExpansion(long address, int order);
37    public static native int getOffset(long address);
38    public static native int next(long address);
39    public static native int previous(long address);
40    public static native void reset(long address);
41    public static native void setOffset(long address, int offset);
42    public static native void setText(long address, String source);
43}
44