FrenchIndexCodes.java
/*
Copyright (c) 2026 James Ahlborn
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.
*/
package com.healthmarketscience.jackcess.impl;
/**
* Constants for creating french sort order text index entries. French weights
* every character the way the general legacy order does, and ms access holds
* no tailoring data for it at all. What it does differently is order the
* diacritics of a value from its end, so that {@code cote} sorts before
* {@code côte} before {@code coté} before {@code côté}.
*
* @author James Ahlborn
*/
public class FrenchIndexCodes extends GeneralLegacyIndexCodes
{
static final FrenchIndexCodes FRENCH_INSTANCE = new FrenchIndexCodes();
FrenchIndexCodes() {}
@Override
boolean isDiacriticsReversed() {
return true;
}
}