blob: 5701346cc197f68d5077e52832ea0505283f9976 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
******************************************************************************/
package org.eclipse.equinox.bidi.internal.consumable;
import org.eclipse.equinox.bidi.*;
import org.eclipse.equinox.bidi.custom.BidiComplexProcessor;
/**
* Processor adapted to processing compound names.
* This type covers names made of one or more parts, separated by underscores:
* <pre>
* part1_part2_part3
* </pre>
*/
public class BidiComplexUnderscore extends BidiComplexProcessor {
static final BidiComplexFeatures FEATURES = new BidiComplexFeatures("_", 0, -1, -1, false, false); //$NON-NLS-1$
/**
* This method retrieves the features specific to this processor.
*
* @return features with one operator (underscore),
* no special cases, LTR direction for Arabic and Hebrew,
* and support for both.
*/
public BidiComplexFeatures init(BidiComplexHelper helper, BidiComplexEnvironment env) {
return FEATURES;
}
}