aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/dictionary/utils/byte_array_utils.cpp
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-12-17 07:04:40 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-12-17 07:04:41 +0000
commitc72b69fb2b48824335de61d4ac17bb9e85232852 (patch)
tree8fc0088a1ed67386f806875891a9b3c0513dd500 /native/jni/src/dictionary/utils/byte_array_utils.cpp
parentdbdc81a36ac44f217e14a660ac671562f2948d89 (diff)
parent88bc312ad34321fb3e81be2dc939a889d065f4a7 (diff)
downloadlatinime-c72b69fb2b48824335de61d4ac17bb9e85232852.tar.gz
latinime-c72b69fb2b48824335de61d4ac17bb9e85232852.tar.xz
latinime-c72b69fb2b48824335de61d4ac17bb9e85232852.zip
Merge "Move dictionary code to top level dictionary dir."
Diffstat (limited to 'native/jni/src/dictionary/utils/byte_array_utils.cpp')
-rw-r--r--native/jni/src/dictionary/utils/byte_array_utils.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/native/jni/src/dictionary/utils/byte_array_utils.cpp b/native/jni/src/dictionary/utils/byte_array_utils.cpp
new file mode 100644
index 000000000..d38f08217
--- /dev/null
+++ b/native/jni/src/dictionary/utils/byte_array_utils.cpp
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2013 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 "dictionary/utils/byte_array_utils.h"
+
+namespace latinime {
+
+const uint8_t ByteArrayUtils::MINIMUM_ONE_BYTE_CHARACTER_VALUE = 0x20;
+const uint8_t ByteArrayUtils::MAXIMUM_ONE_BYTE_CHARACTER_VALUE = 0xFF;
+const uint8_t ByteArrayUtils::CHARACTER_ARRAY_TERMINATOR = 0x1F;
+
+} // namespace latinime