diff options
author | 2014-05-14 20:05:10 +0900 | |
---|---|---|
committer | 2014-05-14 20:05:10 +0900 | |
commit | e9121a68a67b8723477668130a16d4c72d98f6fe (patch) | |
tree | 0a7ed860ca15db63e91aca6599a59aeface7eb71 /native/jni/src/utils/jni_data_utils.cpp | |
parent | 71f4c6b8eacb210fceb719a0f293d14f359ba4f1 (diff) | |
download | latinime-e9121a68a67b8723477668130a16d4c72d98f6fe.tar.gz latinime-e9121a68a67b8723477668130a16d4c72d98f6fe.tar.xz latinime-e9121a68a67b8723477668130a16d4c72d98f6fe.zip |
Filter out control characters and non-unicode code points.
Bug: 14119293
Bug: 13758761
Change-Id: I6b79cff0714152807f5e20b7a75060a0a772b28b
Diffstat (limited to 'native/jni/src/utils/jni_data_utils.cpp')
-rw-r--r-- | native/jni/src/utils/jni_data_utils.cpp | 24 |
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 |