summaryrefslogtreecommitdiffstats
path: root/icu/src/main/native/UCharacter.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-04-16 17:44:12 -0700
committerElliott Hughes <enh@google.com>2010-04-16 17:44:12 -0700
commitc08f9fb2a3be82bb1a3f477ca1524ddcf7a1d4b8 (patch)
treecc325048a7dc4cb15eb2f39244c3b881b284644d /icu/src/main/native/UCharacter.cpp
parent757a7942eed2b0aa457f8517a0259d2ac82c5b18 (diff)
downloadlibcore-c08f9fb2a3be82bb1a3f477ca1524ddcf7a1d4b8.zip
libcore-c08f9fb2a3be82bb1a3f477ca1524ddcf7a1d4b8.tar.gz
libcore-c08f9fb2a3be82bb1a3f477ca1524ddcf7a1d4b8.tar.bz2
Move the libcore registration out of libnativehelpers and into libcore.
Bug: 754114 Change-Id: Iaa03def509c10cbaa12fd2128584b93d4be4a6b7
Diffstat (limited to 'icu/src/main/native/UCharacter.cpp')
-rw-r--r--icu/src/main/native/UCharacter.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/icu/src/main/native/UCharacter.cpp b/icu/src/main/native/UCharacter.cpp
index 4186b75..1c5af48 100644
--- a/icu/src/main/native/UCharacter.cpp
+++ b/icu/src/main/native/UCharacter.cpp
@@ -15,8 +15,8 @@
*/
#define LOG_TAG "UCharacter"
+
#include "JNIHelp.h"
-#include "AndroidSystemNatives.h"
#include "ScopedJavaUnicodeString.h"
#include "ScopedUtfChars.h"
#include "unicode/locid.h"
@@ -171,11 +171,7 @@ static int ofImpl(JNIEnv*, jclass, jint codePoint) {
return ublock_getCode(codePoint);
}
-/*
- * JNI registration
- */
static JNINativeMethod gMethods[] = {
- /* name, signature, funcPtr */
{ "digit", "(II)I", (void*) digitImpl },
{ "forName", "(Ljava/lang/String;)I", (void*) forNameImpl },
{ "getDirectionality", "(I)B", (void*) getDirectionalityImpl },
@@ -201,7 +197,6 @@ static JNINativeMethod gMethods[] = {
{ "toLowerCase", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", (void*) toLowerCaseStringImpl },
{ "toUpperCase", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", (void*) toUpperCaseStringImpl },
};
-
int register_com_ibm_icu4jni_lang_UCharacter(JNIEnv* env) {
return jniRegisterNativeMethods(env, "com/ibm/icu4jni/lang/UCharacter",
gMethods, NELEM(gMethods));