aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/utils/jni_data_utils.cpp
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-05-14 11:07:32 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-14 11:07:32 +0000
commit5c00bde9bc67d757a33cbaeba7158852c08a39fb (patch)
treee816b7274ea99b6cc5e26e31dff5557df2b1b726 /native/jni/src/utils/jni_data_utils.cpp
parent728141d55a0a785a4ed09586f7e22272cd49fc96 (diff)
parente9121a68a67b8723477668130a16d4c72d98f6fe (diff)
downloadlatinime-5c00bde9bc67d757a33cbaeba7158852c08a39fb.tar.gz
latinime-5c00bde9bc67d757a33cbaeba7158852c08a39fb.tar.xz
latinime-5c00bde9bc67d757a33cbaeba7158852c08a39fb.zip
Merge "Filter out control characters and non-unicode code points."
Diffstat (limited to 'native/jni/src/utils/jni_data_utils.cpp')
-rw-r--r--native/jni/src/utils/jni_data_utils.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/native/jni/src/utils/jni_data_utils.cpp b/native/jni/src/utils/jni_data_utils.cpp
new file mode 100644
index 000000000..5555293d5
--- /dev/null
+++ b/native/jni/src/utils/jni_data_utils.cpp
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2014 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "utils/jni_data_utils.h"
+
+namespace latinime {
+
+const int JniDataUtils::CODE_POINT_REPLACEMENT_CHARACTER = 0xFFFD;
+const int JniDataUtils::CODE_POINT_NULL = 0;
+
+} // namespace latinime