C D F G J M O P S T

C

CharacterList - class org.jtr.transliterate.CharacterList.
Holds an ordered list of characters and character ranges.
CharacterList() - Constructor for class org.jtr.transliterate.CharacterList
Creates an empty CharacterList
CharacterList(List) - Constructor for class org.jtr.transliterate.CharacterList
Creates new CharacterList, using the given list of ListEntry objects.
CharacterParseException - exception org.jtr.transliterate.CharacterParseException.
Exception thrown by the CharacterParser when a parse error occurs.
CharacterParseException(String, int) - Constructor for class org.jtr.transliterate.CharacterParseException
Constructs an CharacterParseException with the specified detail message and offset.
CharacterParser - class org.jtr.transliterate.CharacterParser.
Simple parser for characters and character ranges.
CharacterParser() - Constructor for class org.jtr.transliterate.CharacterParser
Creates new CharacterParser
CharacterReplacer - class org.jtr.transliterate.CharacterReplacer.
Main class for performing the transliteration operation.
CharacterReplacer(CharacterList) - Constructor for class org.jtr.transliterate.CharacterReplacer
Creates new CharacterReplacer using a pre-compiled CharacterList.
CharacterReplacer(CharacterList, CharacterList) - Constructor for class org.jtr.transliterate.CharacterReplacer
Creates new CharacterReplacer using pre-compiled CharacterLists.
CharacterReplacer(String) - Constructor for class org.jtr.transliterate.CharacterReplacer
Compiles a transliteration from a String object.
CharacterReplacer(String, String) - Constructor for class org.jtr.transliterate.CharacterReplacer
Compiles a transliteration from String objects.
clone() - Method in class org.jtr.transliterate.CharacterReplacer
Return a clone of the current replacer.
compilePattern(char[]) - Method in class org.jtr.transliterate.CharacterParser
The main compile routine, using a character array as the pattern to be compiled.
compilePattern(String) - Method in class org.jtr.transliterate.CharacterParser
The main compile routine, using a String as the pattern to be compiled.
COMPLEMENT_MASK - Static variable in class org.jtr.transliterate.CharacterParser
Complement the search list.

D

DELETE_UNREPLACEABLES_MASK - Static variable in class org.jtr.transliterate.CharacterParser
Delete any characters in the search list that don't have a corresponding character in the replacement list.
doReplacement(char[]) - Method in class org.jtr.transliterate.CharacterReplacer
Performs a transliteration on the given character array.
doReplacement(String) - Method in class org.jtr.transliterate.CharacterReplacer
Performs a transliteration operation on the given String.

F

findCharAtPosition(int, boolean) - Method in class org.jtr.transliterate.CharacterList
Finds the character corresponding to the given position in the list.

G

getMatch(char, boolean) - Method in class org.jtr.transliterate.CharacterList
Determines whether a given character exists in the list.
getMatches() - Method in class org.jtr.transliterate.CharacterReplacer
Gets the number of matches found by the most recent CharacterReplacer.doReplacement(java.lang.String) method call.

J

JtrTestSuite - class org.jtr.testcase.JtrTestSuite.
A test suite for the "jtr" library.
JtrTestSuite(String) - Constructor for class org.jtr.testcase.JtrTestSuite
Creates new JtrTestSuite

M

main(String[]) - Static method in class org.jtr.testcase.JtrTestSuite
Runs the test cases using the text-based JUnit test runner.
main(String[]) - Static method in class org.jtr.transliterate.Perl5Parser
A simple test case for this class.
makeReplacer(String) - Static method in class org.jtr.transliterate.Perl5Parser
Parses the given string in Perl syntax and returns a populated CharacterReplacer object that can be used to perform the specified transliteration.

O

org.jtr.testcase - package org.jtr.testcase
Test cases for the jtr library.
org.jtr.transliterate - package org.jtr.transliterate
Performs Perl 5-style transliterations on a given string.

P

parsePerlString(String, StringBuffer, StringBuffer) - Static method in class org.jtr.transliterate.Perl5Parser
Parses the given Perl-style transliteration string into two parts:
Perl5Parser - class org.jtr.transliterate.Perl5Parser.
A utility class for providing Perl 5 syntactic sugar on top of the CharacterParser class.

S

setFlags(int) - Method in class org.jtr.transliterate.CharacterReplacer
Sets or clears flags that are used during the transliteration process.
setUp() - Method in class org.jtr.testcase.JtrTestSuite
Set up for a couple of the test cases that explicitly use a parser.
size() - Method in class org.jtr.transliterate.CharacterList
Determines the total number of characters in the list—not just the number of entries in the underlying array.
SQUASH_DUPLICATES_MASK - Static variable in class org.jtr.transliterate.CharacterParser
Squash any replacement characters that occur more than once in succession during the transliteration process.
suite() - Static method in class org.jtr.testcase.JtrTestSuite
Automatic test suite generator for JUnit.

T

testCloneMethod() - Method in class org.jtr.testcase.JtrTestSuite
Tests the clone method of CharacterReplacer.
testComplementAndSquash() - Method in class org.jtr.testcase.JtrTestSuite
Tests the combination of complement and squashing duplicate matches.
testComplementAndSquash2() - Method in class org.jtr.testcase.JtrTestSuite
Tests the combination of complement and squashing duplicate matches.
testComplementAndUnreplaceable() - Method in class org.jtr.testcase.JtrTestSuite
Tests the combination of deletion and complement modifiers.
testComplementAndUnreplaceable2() - Method in class org.jtr.testcase.JtrTestSuite
Tests the combination of deletion and complement modifiers.
testComplementAndUnreplaceable3() - Method in class org.jtr.testcase.JtrTestSuite
Tests the combination of deletion and complement modifiers.
testComplementAndUnreplaceable4() - Method in class org.jtr.testcase.JtrTestSuite
Tests the combination of deletion and complement modifiers.
testComplementAndUnreplaceable5() - Method in class org.jtr.testcase.JtrTestSuite
Tests the combination of deletion and complement modifiers.
testControlCharacterReplacement() - Method in class org.jtr.testcase.JtrTestSuite
Test control character handling.
testControlCharacterReplacement2() - Method in class org.jtr.testcase.JtrTestSuite
Test control character handling.
testControlCharacterReplacement3() - Method in class org.jtr.testcase.JtrTestSuite
Test control character handling.
testControlCharacterReplacement4() - Method in class org.jtr.testcase.JtrTestSuite
Test control character handling.
testControlCharacterReplacement5() - Method in class org.jtr.testcase.JtrTestSuite
Test control character handling.
testControlCharacterReplacement6() - Method in class org.jtr.testcase.JtrTestSuite
Test control character handling.
testDegenerateAllModifiers() - Method in class org.jtr.testcase.JtrTestSuite
Tests the combination of all the modifiers.
testDegenerateAllModifiers2() - Method in class org.jtr.testcase.JtrTestSuite
Tests the combination of all the modifiers.
testDegenerateComplementAndUnreplaceable() - Method in class org.jtr.testcase.JtrTestSuite
Tests the combination of deletion and complement modifiers.
testDegenerateComplementAndUnreplaceable2() - Method in class org.jtr.testcase.JtrTestSuite
Tests the combination of deletion and complement modifiers.
testHexCharacterReplacement() - Method in class org.jtr.testcase.JtrTestSuite
Tests hexadecimal character support.
testHexCharacterReplacement2() - Method in class org.jtr.testcase.JtrTestSuite
Tests hexadecimal character support.
testHexCharacterReplacement3() - Method in class org.jtr.testcase.JtrTestSuite
Tests hexadecimal character support.
testLongStringReplacement() - Method in class org.jtr.testcase.JtrTestSuite
Test transliteration on long strings.
testNullUnreplaceable() - Method in class org.jtr.testcase.JtrTestSuite
Tests the deletion modifier.
testNullUnreplaceable2() - Method in class org.jtr.testcase.JtrTestSuite
Tests the deletion modifier.
testNullUnreplaceable3() - Method in class org.jtr.testcase.JtrTestSuite
Tests the deletion modifier.
testOctalCharacterReplacement() - Method in class org.jtr.testcase.JtrTestSuite
Tests octal character support.
testOctalCharacterReplacement2() - Method in class org.jtr.testcase.JtrTestSuite
Tests octal character support.
testOctalCharacterReplacement3() - Method in class org.jtr.testcase.JtrTestSuite
Tests octal character support.
testOtherSpecialCharacters() - Method in class org.jtr.testcase.JtrTestSuite
Tests wide character translation support.
testOtherSpecialCharacters2() - Method in class org.jtr.testcase.JtrTestSuite
Test other special characters.
testOtherSpecialCharacters3() - Method in class org.jtr.testcase.JtrTestSuite
Test other special characters.
testOtherSpecialCharacters4() - Method in class org.jtr.testcase.JtrTestSuite
Test other special characters.
testSimpleComplement() - Method in class org.jtr.testcase.JtrTestSuite
Tests a simple complement operation.
testSimpleComplement2() - Method in class org.jtr.testcase.JtrTestSuite
Tests a simple complement operation.
testSimpleDuplicateSearchList() - Method in class org.jtr.testcase.JtrTestSuite
Tests what happens when a character in the search list is duplicated.
testSimpleDuplicateSearchList2() - Method in class org.jtr.testcase.JtrTestSuite
Tests what happens when a character in the search list is duplicated.
testSimpleNullReplacement() - Method in class org.jtr.testcase.JtrTestSuite
Tests what happens when the replacement string is empty.
testSimpleNullReplacement2() - Method in class org.jtr.testcase.JtrTestSuite
Tests what happens when the replacement string is empty.
testSimpleNullReplacement3() - Method in class org.jtr.testcase.JtrTestSuite
Tests what happens when the replacement string is empty.
testSimpleNullReplacement4() - Method in class org.jtr.testcase.JtrTestSuite
Tests what happens when the replacement string is empty.
testSimpleNullReplacement5() - Method in class org.jtr.testcase.JtrTestSuite
Tests what happens when the replacement string is empty.
testSimpleShortReplacement() - Method in class org.jtr.testcase.JtrTestSuite
Tests what happens when the replacement string is shorter than the matching string.
testSimpleShortReplacement2() - Method in class org.jtr.testcase.JtrTestSuite
Tests what happens when the replacement string is shorter than the matching string.
testSimpleShortReplacement3() - Method in class org.jtr.testcase.JtrTestSuite
Tests what happens when the replacement string is shorter than the matching string.
testSimpleSquash() - Method in class org.jtr.testcase.JtrTestSuite
Tests the squashing of duplicate matches.
testSimpleSquash2() - Method in class org.jtr.testcase.JtrTestSuite
Tests the squashing of duplicate matches.
testSimpleTransliterate() - Method in class org.jtr.testcase.JtrTestSuite
Performs a simple transliteration.
testSimpleTransliterate2() - Method in class org.jtr.testcase.JtrTestSuite
Performs a simple transliteration using the Perl5Parser class.
testSpecialRange() - Method in class org.jtr.testcase.JtrTestSuite
Test control character handling.
testSpecialRange2() - Method in class org.jtr.testcase.JtrTestSuite
Test control character handling.
testUnreplaceable() - Method in class org.jtr.testcase.JtrTestSuite
Tests the deletion modifier.
testUnreplaceable2() - Method in class org.jtr.testcase.JtrTestSuite
Tests the deletion modifier.
testUnreplaceable3() - Method in class org.jtr.testcase.JtrTestSuite
Tests the deletion modifier.
testWideHexCharacterReplacement() - Method in class org.jtr.testcase.JtrTestSuite
Tests wide character translation support.
testWideHexCharacterReplacement2() - Method in class org.jtr.testcase.JtrTestSuite
Tests wide character translation support.
testWideHexCharacterReplacement3() - Method in class org.jtr.testcase.JtrTestSuite
Tests wide character translation support.

C D F G J M O P S T