| Top |
| gint | size | Read |
| gboolean | auto-correct | Read / Write |
| KkcKanaMode | kana-mode | Read / Write |
| gchar * | pending-input | Read |
| gchar * | pending-output | Read |
| KkcRomKanaCharacterList * | produced | Read |
| KkcPunctuationStyle | punctuation-style | Read / Write |
| KkcRomKanaMapFile * | rule | Read / Write |
| #define | KKC_TYPE_ROM_KANA_CHARACTER_LIST |
| struct | KkcRomKanaCharacterList |
| struct | KkcRomKanaCharacterListClass |
| #define | KKC_TYPE_ROM_KANA_CONVERTER |
| struct | KkcRomKanaConverter |
| struct | KkcRomKanaConverterClass |
| enum | KkcKanaMode |
| enum | KkcPunctuationStyle |
| struct | KkcRomKanaCharacter |
GBoxed
╰── KkcRomKanaCharacter
GEnum
├── KkcKanaMode
╰── KkcPunctuationStyle
GObject
├── KkcRomKanaCharacterList
╰── KkcRomKanaConverter
void kkc_rom_kana_character_list_add (KkcRomKanaCharacterList *self,KkcRomKanaCharacter *character);
Append a character to the character list.
void kkc_rom_kana_character_list_add_all (KkcRomKanaCharacterList *self,KkcRomKanaCharacterList *other);
Append all characters in other character list to the character list.
void kkc_rom_kana_character_list_insert (KkcRomKanaCharacterList *self,gint index,KkcRomKanaCharacter *character);
Add a character to the character list at the specified position.
self |
the KkcRomKanaCharacterList instance |
|
index |
. index . |
[in] |
character |
. RomKanaCharacter . |
[in] |
void kkc_rom_kana_character_list_insert_all (KkcRomKanaCharacterList *self,gint index,KkcRomKanaCharacterList *other);
Add all characters in other character list to the character list at the specified position.
self |
the KkcRomKanaCharacterList instance |
|
index |
. index . |
[in] |
other |
. RomKanaCharacterList . |
[in] |
void kkc_rom_kana_character_list_get (KkcRomKanaCharacterList *self,gint index,KkcRomKanaCharacter *result);
Get a character at the given index.
void
kkc_rom_kana_character_list_clear (KkcRomKanaCharacterList *self);
Remove all characters from the character list.
KkcRomKanaCharacterList * kkc_rom_kana_character_list_slice (KkcRomKanaCharacterList *self,gint start_char_pos,gint stop_char_pos);
Return a slice of this character list.
self |
the KkcRomKanaCharacterList instance |
|
start_char_pos |
. zero-based index of the begin of the slice . |
[in] |
stop_char_pos |
. zero-based index after the end of the slice . |
[in] |
void kkc_rom_kana_character_list_remove_at (KkcRomKanaCharacterList *self,gint index);
Remove a character at the given index.
gchar *
kkc_rom_kana_character_list_get_output
(KkcRomKanaCharacterList *self);
Return the concatenation of all character output as a string.
gchar *
kkc_rom_kana_character_list_get_input (KkcRomKanaCharacterList *self);
Return the concatenation of all character input as a string.
KkcRomKanaCharacterList *
kkc_rom_kana_character_list_new (void);
gint
kkc_rom_kana_character_list_get_size (KkcRomKanaCharacterList *self);
Get and return the current value of the "size" property.
The number of characters in the character list.
gchar *
kkc_rom_kana_converter_get_produced_output
(KkcRomKanaConverter *self);
Return the concatenation of the produced output characters.
gboolean kkc_rom_kana_converter_is_valid (KkcRomKanaConverter *self,gunichar uc);
Check if a character is a valid conversion input.
gboolean
kkc_rom_kana_converter_flush_partial (KkcRomKanaConverter *self);
Finish pending input, if any.
Note that this does not reset pending input/output and the current node if there is no partial output.
void kkc_rom_kana_converter_append_text (KkcRomKanaConverter *self,const gchar *text);
Append text to the internal buffer.
gboolean kkc_rom_kana_converter_append (KkcRomKanaConverter *self,gunichar uc);
Append a character to the internal buffer.
gboolean kkc_rom_kana_converter_can_consume (KkcRomKanaConverter *self,gunichar uc,gboolean no_carryover);
Check if a character will be consumed by the current conversion.
self |
the KkcRomKanaConverter instance |
|
uc |
. an ASCII character . |
[in] |
no_carryover |
. return false if there will be carryover . |
[in] |
void
kkc_rom_kana_converter_reset (KkcRomKanaConverter *self);
Reset the internal state of the converter.
gboolean
kkc_rom_kana_converter_delete (KkcRomKanaConverter *self);
Delete the trailing character from the internal buffer.
KkcRomKanaConverter *
kkc_rom_kana_converter_new (void);
Create a new RomKanaConverter.
KkcKanaMode
kkc_rom_kana_converter_get_kana_mode (KkcRomKanaConverter *self);
Get and return the current value of the "kana-mode" property.
The current kana mode.
void kkc_rom_kana_converter_set_kana_mode (KkcRomKanaConverter *self,KkcKanaMode value);
Set the value of the "kana-mode" property to value
.
The current kana mode.
self |
the KkcRomKanaConverter instance to modify |
|
value |
the new value of the "kana-mode" property |
KkcPunctuationStyle
kkc_rom_kana_converter_get_punctuation_style
(KkcRomKanaConverter *self);
Get and return the current value of the "punctuation-style" property.
The current punctuation style.
void kkc_rom_kana_converter_set_punctuation_style (KkcRomKanaConverter *self,KkcPunctuationStyle value);
Set the value of the "punctuation-style" property to value
.
The current punctuation style.
self |
the KkcRomKanaConverter instance to modify |
|
value |
the new value of the "punctuation-style" property |
gboolean
kkc_rom_kana_converter_get_auto_correct
(KkcRomKanaConverter *self);
Get and return the current value of the "auto-correct" property.
The current auto correct flag.
void kkc_rom_kana_converter_set_auto_correct (KkcRomKanaConverter *self,gboolean value);
Set the value of the "auto-correct" property to value
.
The current auto correct flag.
self |
the KkcRomKanaConverter instance to modify |
|
value |
the new value of the "auto-correct" property |
const gchar *
kkc_rom_kana_converter_get_pending_output
(KkcRomKanaConverter *self);
Get and return the current value of the "pending-output" property.
The output being processed.
const gchar *
kkc_rom_kana_converter_get_pending_input
(KkcRomKanaConverter *self);
Get and return the current value of the "pending-input" property.
The input being processed.
KkcRomKanaCharacterList *
kkc_rom_kana_converter_get_produced (KkcRomKanaConverter *self);
Get and return the current value of the "produced" property.
A list of already processed characters.
KkcRomKanaCharacter *
kkc_rom_kana_character_dup (const KkcRomKanaCharacter *self);
Creates a copy of self.
See also: kkc_rom_kana_character_copy(), kkc_rom_kana_character_destroy(), kkc_rom_kana_character_free()
void
kkc_rom_kana_character_free (KkcRomKanaCharacter *self);
Frees the heap-allocated struct.
See also: kkc_rom_kana_character_dup(), kkc_rom_kana_character_copy(), kkc_rom_kana_character_destroy()
void kkc_rom_kana_character_copy (const KkcRomKanaCharacter *self,KkcRomKanaCharacter *dest);
Creates a copy of self.
See also: kkc_rom_kana_character_dup(), kkc_rom_kana_character_destroy(), kkc_rom_kana_character_free()
self |
the struct to copy |
|
dest |
a unused struct. Use |
void
kkc_rom_kana_character_destroy (KkcRomKanaCharacter *self);
Frees the content of the struct pointed by self
.
See also: kkc_rom_kana_character_dup(), kkc_rom_kana_character_copy(), kkc_rom_kana_character_free()
#define KKC_TYPE_ROM_KANA_CHARACTER_LIST (kkc_rom_kana_character_list_get_type ())
The type for KkcRomKanaCharacterList.
struct KkcRomKanaCharacterListClass {
GObjectClass parent_class;
};
The class structure for KKC_TYPE_ROM_KANA_CHARACTER_LIST. All the fields in this structure are private and should never be accessed directly.
#define KKC_TYPE_ROM_KANA_CONVERTER (kkc_rom_kana_converter_get_type ())
The type for KkcRomKanaConverter.
struct KkcRomKanaConverterClass {
GObjectClass parent_class;
};
The class structure for KKC_TYPE_ROM_KANA_CONVERTER. All the fields in this structure are private and should never be accessed directly.
“size” property “size” gint
The number of characters in the character list.
Flags: Read
Default value: 0
“auto-correct” property “auto-correct” gboolean
The current auto correct flag.
Flags: Read / Write
Default value: TRUE
“kana-mode” property“kana-mode” KkcKanaMode
The current kana mode.
Flags: Read / Write
Default value: KKC_KANA_MODE_HIRAGANA
“pending-input” property “pending-input” gchar *
The input being processed.
Flags: Read
Default value: NULL
“pending-output” property “pending-output” gchar *
The output being processed.
Flags: Read
Default value: NULL
“produced” property“produced” KkcRomKanaCharacterList *
A list of already processed characters.
Flags: Read
“punctuation-style” property“punctuation-style” KkcPunctuationStyle
The current punctuation style.
Flags: Read / Write
Default value: KKC_PUNCTUATION_STYLE_JA_JA