13aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes/* 23aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * Copyright (C) 2013 The Android Open Source Project 33aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * 43aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * Licensed under the Apache License, Version 2.0 (the "License"); 53aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * you may not use this file except in compliance with the License. 63aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * You may obtain a copy of the License at 73aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * 83aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * http://www.apache.org/licenses/LICENSE-2.0 93aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * 103aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * Unless required by applicable law or agreed to in writing, software 113aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * distributed under the License is distributed on an "AS IS" BASIS, 123aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 133aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * See the License for the specific language governing permissions and 143aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * limitations under the License. 153aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes */ 163aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes 173aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes#ifndef ICU_UTILITIES_H_included 183aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes#define ICU_UTILITIES_H_included 193aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes 203aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes#include "jni.h" 21783a57a7ece339bc246925e328bc82b50cae427aElliott Hughes#include "ustrenum.h" // For UStringEnumeration. 223aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes#include "unicode/utypes.h" // For UErrorCode. 233aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes 24a04b5c3d39232c7616591883ee2124520e3ab622Elliott Hughesextern jobjectArray fromStringEnumeration(JNIEnv* env, UErrorCode& status, const char* provider, icu::StringEnumeration*); 253aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughesbool maybeThrowIcuException(JNIEnv* env, const char* function, UErrorCode error); 263aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes 273aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes#endif // ICU_UTILITIES_H_included 28