Flutter Engine
The Flutter Engine
|
Public Member Functions | |
CharacterCombiner () | |
Package Functions | |
Character | applyCombiningCharacterToBaseCharacter (int newCharacterCodePoint) |
Applies the given Unicode character from KeyEvent#getUnicodeChar()
to a previously entered Unicode combining character and returns the combination of these characters if a combination exists.
This class is not used by KeyboardManager
, but by its responders.
Definition at line 56 of file KeyboardManager.java.
|
inline |
Definition at line 59 of file KeyboardManager.java.
|
inlinepackage |
This method mutates combiningCharacter
over time to combine characters.
One of the following things happens in this method:
combiningCharacter
exists and the newCharacterCodePoint
is not a combining character, then newCharacterCodePoint
is returned. combiningCharacter
exists and the newCharacterCodePoint
is a combining character, then newCharacterCodePoint
is saved as the combiningCharacter
and null is returned. combiningCharacter
exists and the newCharacterCodePoint
is also a combining character, then the newCharacterCodePoint
is combined with the existing combiningCharacter
and null is returned. combiningCharacter
exists and the newCharacterCodePoint
is not a combining character, then the combiningCharacter
is applied to the regular newCharacterCodePoint
and the resulting complex character is returned. The combiningCharacter
is cleared. The following reference explains the concept of a "combining character": https://en.wikipedia.org/wiki/Combining_character
Definition at line 84 of file KeyboardManager.java.