1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: namesort.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
32 #include <ary/namesort.hxx>
35 // NOT FULLY DEFINED SERVICES
43 int C_cAutodocNameOrdering1
[256] =
44 { 0,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, // 0 ..
45 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
46 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, // 32 ..
47 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,255,255, 255,255,255,255,
49 255, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, // 64 ..
50 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61,255, 255,255,255, 63,
51 255, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, // 96 ..
52 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61,255, 255,255,255,255,
54 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, //128 ..
55 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
56 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, //160 ..
57 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
59 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
60 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
61 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
62 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255
65 int C_cAutodocNameOrdering2
[256] =
66 { 0,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, // 0 ..
67 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
68 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, // 32 ..
69 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,255,255, 255,255,255,255,
71 255, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, // 64 ..
72 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61,255, 255,255,255, 63,
73 255, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, // 96 ..
74 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62,255, 255,255,255,255,
76 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, //128 ..
77 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
78 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, //160 ..
79 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
81 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
82 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
83 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
84 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255
88 } // namespace anonymous
95 const csv::CharOrder_Table
96 LesserName::aOrdering1_(C_cAutodocNameOrdering1
);
98 const csv::CharOrder_Table
99 LesserName::aOrdering2_(C_cAutodocNameOrdering2
);