aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/basechars.h
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-07-14 15:43:42 +0900
committersatok <satok@google.com>2011-07-14 15:47:32 +0900
commitd24df43eaf1f7a7a9a9fcf31a45f0c2b2e11b698 (patch)
tree75d21d2ad20d3e5ec69cae7e9680920df471011e /native/src/basechars.h
parentf7f2e82e8bbd14c00298d09be987e3c666195f50 (diff)
downloadlatinime-d24df43eaf1f7a7a9a9fcf31a45f0c2b2e11b698.tar.gz
latinime-d24df43eaf1f7a7a9a9fcf31a45f0c2b2e11b698.tar.xz
latinime-d24df43eaf1f7a7a9a9fcf31a45f0c2b2e11b698.zip
(Step2)Move functions related to proximity to proximity_info.cpp
Change-Id: Iae0eb2a5cd758bda820fa42b4bc3eb3d2665bf96
Diffstat (limited to 'native/src/basechars.h')
-rw-r--r--native/src/basechars.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/native/src/basechars.h b/native/src/basechars.h
index 5a4406606..3843e11c5 100644
--- a/native/src/basechars.h
+++ b/native/src/basechars.h
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2009 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.
+ */
+
+#ifndef LATINIME_BASECHARS_H
+#define LATINIME_BASECHARS_H
+
/**
* Table mapping most combined Latin, Greek, and Cyrillic characters
* to their base characters. If c is in range, BASE_CHARS[c] == c
@@ -170,3 +189,4 @@ static unsigned short BASE_CHARS[] = {
// generated with:
// cat UnicodeData.txt | perl -e 'while (<>) { @foo = split(/;/); $foo[5] =~ s/<.*> //; $base[hex($foo[0])] = hex($foo[5]);} for ($i = 0; $i < 0x500; $i += 8) { for ($j = $i; $j < $i + 8; $j++) { printf("0x%04x, ", $base[$j] ? $base[$j] : $j)}; print "\n"; }'
+#endif // LATINIME_BASECHARS_H