Package com.ibm.icu.impl
Class CaseMapImpl.GreekUpper
- java.lang.Object
-
- com.ibm.icu.impl.CaseMapImpl.GreekUpper
-
- Enclosing class:
- CaseMapImpl
private static final class CaseMapImpl.GreekUpper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static int
AFTER_CASED
private static int
AFTER_VOWEL_WITH_COMBINING_ACCENT
private static int
AFTER_VOWEL_WITH_PRECOMPOSED_ACCENT
private static char[]
data0370
private static char[]
data1F00
private static char
data2126
private static int
HAS_ACCENT
private static int
HAS_COMBINING_DIALYTIKA
private static int
HAS_DIALYTIKA
private static int
HAS_EITHER_DIALYTIKA
private static int
HAS_OTHER_GREEK_DIACRITIC
private static int
HAS_VOWEL
private static int
HAS_VOWEL_AND_ACCENT
private static int
HAS_VOWEL_AND_ACCENT_AND_DIALYTIKA
private static int
HAS_YPOGEGRAMMENI
private static int
UPPER_MASK
-
Constructor Summary
Constructors Modifier Constructor Description private
GreekUpper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static int
getDiacriticData(int c)
Returns a non-zero value for each of the Greek combining diacritics listed in The Unicode Standard, version 8, chapter 7.2 Greek, plus some perispomeni look-alikes.private static int
getLetterData(int c)
private static boolean
isFollowedByCasedLetter(java.lang.CharSequence s, int i)
private static <A extends java.lang.Appendable>
AtoUpper(int options, java.lang.CharSequence src, A dest, Edits edits)
Greek string uppercasing with a state machine.
-
-
-
Field Detail
-
UPPER_MASK
private static final int UPPER_MASK
- See Also:
- Constant Field Values
-
HAS_VOWEL
private static final int HAS_VOWEL
- See Also:
- Constant Field Values
-
HAS_YPOGEGRAMMENI
private static final int HAS_YPOGEGRAMMENI
- See Also:
- Constant Field Values
-
HAS_ACCENT
private static final int HAS_ACCENT
- See Also:
- Constant Field Values
-
HAS_DIALYTIKA
private static final int HAS_DIALYTIKA
- See Also:
- Constant Field Values
-
HAS_COMBINING_DIALYTIKA
private static final int HAS_COMBINING_DIALYTIKA
- See Also:
- Constant Field Values
-
HAS_OTHER_GREEK_DIACRITIC
private static final int HAS_OTHER_GREEK_DIACRITIC
- See Also:
- Constant Field Values
-
HAS_VOWEL_AND_ACCENT
private static final int HAS_VOWEL_AND_ACCENT
- See Also:
- Constant Field Values
-
HAS_VOWEL_AND_ACCENT_AND_DIALYTIKA
private static final int HAS_VOWEL_AND_ACCENT_AND_DIALYTIKA
- See Also:
- Constant Field Values
-
HAS_EITHER_DIALYTIKA
private static final int HAS_EITHER_DIALYTIKA
- See Also:
- Constant Field Values
-
AFTER_CASED
private static final int AFTER_CASED
- See Also:
- Constant Field Values
-
AFTER_VOWEL_WITH_COMBINING_ACCENT
private static final int AFTER_VOWEL_WITH_COMBINING_ACCENT
- See Also:
- Constant Field Values
-
AFTER_VOWEL_WITH_PRECOMPOSED_ACCENT
private static final int AFTER_VOWEL_WITH_PRECOMPOSED_ACCENT
- See Also:
- Constant Field Values
-
data0370
private static final char[] data0370
-
data1F00
private static final char[] data1F00
-
data2126
private static final char data2126
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLetterData
private static final int getLetterData(int c)
-
getDiacriticData
private static final int getDiacriticData(int c)
Returns a non-zero value for each of the Greek combining diacritics listed in The Unicode Standard, version 8, chapter 7.2 Greek, plus some perispomeni look-alikes.
-
isFollowedByCasedLetter
private static boolean isFollowedByCasedLetter(java.lang.CharSequence s, int i)
-
toUpper
private static <A extends java.lang.Appendable> A toUpper(int options, java.lang.CharSequence src, A dest, Edits edits) throws java.io.IOException
Greek string uppercasing with a state machine. Probably simpler than a stateless function that has to figure out complex context-before for each character. TODO: Try to re-consolidate one way or another with the non-Greek function.Keep this consistent with the C++ versions in ustrcase.cpp (UTF-16) and ucasemap.cpp (UTF-8).
- Throws:
java.io.IOException
-
-