From 88bc312ad34321fb3e81be2dc939a889d065f4a7 Mon Sep 17 00:00:00 2001 From: Keisuke Kuroyanagi Date: Wed, 17 Dec 2014 16:02:09 +0900 Subject: Move dictionary code to top level dictionary dir. Bug: 18725954 Change-Id: Ia442ba4b5d84311057d83edf6e7aeb151d6a820b --- .../jni/src/dictionary/utils/byte_array_utils.cpp | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 native/jni/src/dictionary/utils/byte_array_utils.cpp (limited to 'native/jni/src/dictionary/utils/byte_array_utils.cpp') 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 -- cgit v1.2.3-83-g751a