Transliterator.java revision 3aac4ddc4d17c07fa8b4908069d23d5401a77993
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 Hughespackage libcore.icu; 183aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes 193aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughespublic final class Transliterator { 203aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes /** 213aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * Returns the ids of all known transliterators. 223aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes */ 233aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes public static native String[] getAvailableIDs(); 243aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes 253aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes /** 263aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes * Transliterates 's' using the transliterator identified by 'id'. 273aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes */ 283aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes public static native String transliterate(String id, String s); 293aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes 303aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes private Transliterator() {} 313aac4ddc4d17c07fa8b4908069d23d5401a77993Elliott Hughes} 32