Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 70c5abc545996d8101ad3e9850322c308f6ad392 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*******************************************************************************
 * Copyright (c) 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;

import org.eclipse.equinox.bidi.custom.STextProcessor;
import org.eclipse.equinox.bidi.internal.STextImpl;

// TBD experimental
public class STextProcessorMultipass extends STextProcessor {

	private int[] state = new int[] {0};

	public STextProcessorMultipass() {

	}

	public String leanToFullText(STextProcessor processor, STextEnvironment environment, String text) {
		return STextImpl.leanToFullText(processor, environment, text, state);
	}

	public int[] leanToFullMap(STextProcessor processor, STextEnvironment environment, String text) {
		return STextImpl.leanToFullMap(processor, environment, text, state);
	}

	public int[] leanBidiCharOffsets(STextProcessor processor, STextEnvironment environment, String text) {
		return STextImpl.leanBidiCharOffsets(processor, environment, text, state);
	}

	public String fullToLeanText(STextProcessor processor, STextEnvironment environment, String text) {
		return STextImpl.fullToLeanText(processor, environment, text, state);
	}

	public int[] fullToLeanMap(STextProcessor processor, STextEnvironment environment, String text) {
		return STextImpl.fullToLeanMap(processor, environment, text, state);
	}

	public int[] fullBidiCharOffsets(STextProcessor processor, STextEnvironment environment, String text) {
		return STextImpl.fullBidiCharOffsets(processor, environment, text, state);
	}
}

Back to the top