/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/ui/base/ime/ |
H A D | character_composer_unittest.cc | 226 EXPECT_TRUE(character_composer_.preedit_string().empty()); in TEST_F() 229 EXPECT_TRUE(character_composer_.preedit_string().empty()); in TEST_F() 323 EXPECT_EQ(ASCIIToUTF16("u"), character_composer_.preedit_string()); in TEST_F() 325 EXPECT_EQ(ASCIIToUTF16("u3"), character_composer_.preedit_string()); in TEST_F() 337 EXPECT_EQ(ASCIIToUTF16(""), character_composer_.preedit_string()); in TEST_F() 342 EXPECT_EQ(ASCIIToUTF16("u"), character_composer_.preedit_string()); in TEST_F() 354 EXPECT_EQ(ASCIIToUTF16(""), character_composer_.preedit_string()); in TEST_F() 451 EXPECT_EQ(ASCIIToUTF16("u"), character_composer_.preedit_string()); in TEST_F() 467 EXPECT_EQ(ASCIIToUTF16(""), character_composer_.preedit_string()); in TEST_F() 471 EXPECT_EQ(ASCIIToUTF16("u"), character_composer_.preedit_string()); in TEST_F() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/ui/base/ime/ |
H A D | character_composer_unittest.cc | 226 EXPECT_TRUE(character_composer_.preedit_string().empty()); in TEST_F() 229 EXPECT_TRUE(character_composer_.preedit_string().empty()); in TEST_F() 323 EXPECT_EQ(ASCIIToUTF16("u"), character_composer_.preedit_string()); in TEST_F() 325 EXPECT_EQ(ASCIIToUTF16("u3"), character_composer_.preedit_string()); in TEST_F() 337 EXPECT_EQ(ASCIIToUTF16(""), character_composer_.preedit_string()); in TEST_F() 342 EXPECT_EQ(ASCIIToUTF16("u"), character_composer_.preedit_string()); in TEST_F() 354 EXPECT_EQ(ASCIIToUTF16(""), character_composer_.preedit_string()); in TEST_F() 451 EXPECT_EQ(ASCIIToUTF16("u"), character_composer_.preedit_string()); in TEST_F() 467 EXPECT_EQ(ASCIIToUTF16(""), character_composer_.preedit_string()); in TEST_F() 471 EXPECT_EQ(ASCIIToUTF16("u"), character_composer_.preedit_string()); in TEST_F() [all …]
|
/dports/textproc/ibus-uniemoji/ibus-uniemoji-0.6.0-16-ga26c364/ |
H A D | ibus.py | 59 self.preedit_string = '' 93 if self.preedit_string: 98 self.commit_string(self.preedit_string) 101 self.preedit_string = '' 105 self.preedit_string = self.preedit_string[:-1] 138 self.preedit_string += chr(keyval) 142 if keyval < 128 and self.preedit_string: 143 self.commit_string(self.preedit_string) 180 self.preedit_string = '' 187 preedit_len = len(self.preedit_string) [all …]
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/ThirdParty/nimf/modules/engines/nimf-system-keyboard/ |
H A D | nimf-system-keyboard.c | 43 gchar *preedit_string; member 88 keyboard->preedit_string = g_strdup (""); in nimf_system_keyboard_init() 121 g_free (keyboard->preedit_string); in nimf_system_keyboard_finalize() 149 if (keyboard->preedit_string[0] != 0 || new_preedit[0] != 0) in nimf_system_keyboard_update_preedit() 151 g_free (keyboard->preedit_string); in nimf_system_keyboard_update_preedit() 152 keyboard->preedit_string = new_preedit; in nimf_system_keyboard_update_preedit() 153 keyboard->preedit_attrs[0]->end_index = g_utf8_strlen (keyboard->preedit_string, -1); in nimf_system_keyboard_update_preedit() 154 nimf_engine_emit_preedit_changed (engine, target, keyboard->preedit_string, in nimf_system_keyboard_update_preedit() 156 g_utf8_strlen (keyboard->preedit_string, in nimf_system_keyboard_update_preedit() 165 keyboard->preedit_string[0] == 0) in nimf_system_keyboard_update_preedit() [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/weston/src/clients/ |
H A D | keyboard.c | 50 char *preedit_string; member 430 if (!keyboard->preedit_string || in virtual_keyboard_commit_preedit() 438 keyboard->preedit_string); in virtual_keyboard_commit_preedit() 443 keyboard->preedit_string); in virtual_keyboard_commit_preedit() 452 free(keyboard->preedit_string); in virtual_keyboard_commit_preedit() 473 keyboard->preedit_string, in virtual_keyboard_send_preedit() 474 keyboard->preedit_string); in virtual_keyboard_send_preedit() 572 keyboard->keyboard->preedit_string[strlen(keyboard->keyboard->preedit_string) - 1] = '\0'; in keyboard_handle_key() 779 free(keyboard->preedit_string); in handle_reset() 878 if (keyboard->preedit_string) in input_method_activate() [all …]
|
/dports/graphics/weston/weston-1.9.0/clients/ |
H A D | keyboard.c | 46 char *preedit_string; member 426 if (!keyboard->preedit_string || in virtual_keyboard_commit_preedit() 434 keyboard->preedit_string); in virtual_keyboard_commit_preedit() 439 keyboard->preedit_string); in virtual_keyboard_commit_preedit() 448 free(keyboard->preedit_string); in virtual_keyboard_commit_preedit() 469 keyboard->preedit_string, in virtual_keyboard_send_preedit() 470 keyboard->preedit_string); in virtual_keyboard_send_preedit() 568 keyboard->keyboard->preedit_string[strlen(keyboard->keyboard->preedit_string) - 1] = '\0'; in keyboard_handle_key() 775 free(keyboard->preedit_string); in handle_reset() 870 if (keyboard->preedit_string) in input_method_activate() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/weston/src/clients/ |
H A D | keyboard.c | 50 char *preedit_string; member 430 if (!keyboard->preedit_string || in virtual_keyboard_commit_preedit() 438 keyboard->preedit_string); in virtual_keyboard_commit_preedit() 443 keyboard->preedit_string); in virtual_keyboard_commit_preedit() 452 free(keyboard->preedit_string); in virtual_keyboard_commit_preedit() 473 keyboard->preedit_string, in virtual_keyboard_send_preedit() 474 keyboard->preedit_string); in virtual_keyboard_send_preedit() 572 keyboard->keyboard->preedit_string[strlen(keyboard->keyboard->preedit_string) - 1] = '\0'; in keyboard_handle_key() 779 free(keyboard->preedit_string); in handle_reset() 878 if (keyboard->preedit_string) in input_method_activate() [all …]
|
/dports/graphics/wrapland/wrapland-6a083c7bc9b37c5f756155e258b1fff4d24cea2a/autotests/client/ |
H A D | input_method_v2.cpp | 472 QCOMPARE(server_input_method->state().preedit_string.update, false); in test_commit() 473 QCOMPARE(server_input_method->state().preedit_string.data, ""); in test_commit() 475 QCOMPARE(server_input_method->state().preedit_string.cursor_end, 0); in test_commit() 483 QCOMPARE(server_input_method->state().preedit_string.update, true); in test_commit() 486 QCOMPARE(server_input_method->state().preedit_string.cursor_end, 2); in test_commit() 499 QCOMPARE(server_input_method->state().preedit_string.update, true); in test_commit() 502 QCOMPARE(server_input_method->state().preedit_string.cursor_end, 2); in test_commit() 511 QCOMPARE(server_input_method->state().preedit_string.update, false); in test_commit() 512 QCOMPARE(server_input_method->state().preedit_string.data, ""); in test_commit() 514 QCOMPARE(server_input_method->state().preedit_string.cursor_end, 0); in test_commit() [all …]
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/ThirdParty/nimf/modules/engines/nimf-libhangul/ |
H A D | nimf-libhangul.c | 42 gchar *preedit_string; member 106 if (hangul->preedit_string[0] != 0 || new_preedit[0] != 0) in nimf_libhangul_update_preedit() 108 g_free (hangul->preedit_string); in nimf_libhangul_update_preedit() 109 hangul->preedit_string = new_preedit; in nimf_libhangul_update_preedit() 120 hangul->preedit_string[0] == 0) in nimf_libhangul_update_preedit() 204 if (hangul->preedit_string[0] == 0) in on_candidate_clicked() 209 if (hangul->preedit_string[0] != 0) in on_candidate_clicked() 426 const char *key = hangul->preedit_string; in nimf_libhangul_filter_event() 429 if (hangul->preedit_string[0] == 0) in nimf_libhangul_filter_event() 729 hangul->preedit_string = g_strdup (""); in nimf_libhangul_init() [all …]
|
/dports/devel/efl/efl-1.25.1/src/modules/ecore_imf/ibus/ |
H A D | ibus_imcontext.c | 28 char *preedit_string; member 332 ibusimcontext->preedit_string = NULL; in ecore_imf_context_ibus_add() 376 if (ibusimcontext->preedit_string) in ecore_imf_context_ibus_del() 377 free(ibusimcontext->preedit_string); in ecore_imf_context_ibus_del() 378 ibusimcontext->preedit_string = NULL; in ecore_imf_context_ibus_del() 554 *str = strdup(ibusimcontext->preedit_string ? ibusimcontext->preedit_string: ""); in ecore_imf_context_ibus_preedit_string_get() 824 if (ibusimcontext->preedit_string) in _ecore_imf_context_ibus_update_preedit_text_cb() 825 free(ibusimcontext->preedit_string); in _ecore_imf_context_ibus_update_preedit_text_cb() 919 ibusimcontext->preedit_string, in _ecore_imf_context_ibus_update_preedit_text_cb() 1014 free(ibusimcontext->preedit_string); in _ecore_imf_context_ibus_destroy_cb() [all …]
|
/dports/japanese/im-ja/im-ja-1.5/patches/ |
H A D | gtkhtml-evolution_preedit_changed.diff | 46 + gchar *preedit_string; 52 + gtk_im_context_get_preedit_string (context, &preedit_string, &attribs, &preedit_cursor_position); 59 + if (g_utf8_strlen (preedit_string, -1) != 0) { 60 + html->priv->preedit_text = html_engine_new_text (html->engine, preedit_string, -1); 69 + g_free (preedit_string);
|
/dports/editors/vim/vim-8.2.3745/src/ |
H A D | gui_xim.c | 257 char *preedit_string; in im_preedit_window_open() local 357 if (preedit_string[0] != NUL) in im_preedit_window_open() 372 g_free(preedit_string); in im_preedit_window_open() 639 char *preedit_string = NULL; in im_preedit_changed_cb() local 648 &preedit_string, NULL, in im_preedit_changed_cb() 652 &preedit_string, NULL, in im_preedit_changed_cb() 663 if (preedit_string[0] == NUL) in im_preedit_changed_cb() 703 str = (char_u *)preedit_string; in im_preedit_changed_cb() 737 g_free(preedit_string); in im_preedit_changed_cb() 806 if (preedit_string[idx] != '\0') in im_get_feedback_attr() [all …]
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/ThirdParty/nimf/libnimf/ |
H A D | nimf-service-ic.c | 39 gchar *preedit_string; member 78 const gchar *preedit_string, in nimf_service_ic_emit_preedit_changed() argument 87 g_free (ic->priv->preedit_string); in nimf_service_ic_emit_preedit_changed() 90 ic->priv->preedit_string = g_strdup (preedit_string); in nimf_service_ic_emit_preedit_changed() 98 class->emit_preedit_changed (ic, preedit_string, attrs, cursor_pos); in nimf_service_ic_emit_preedit_changed() 102 strlen (preedit_string)) in nimf_service_ic_emit_preedit_changed() 105 preedit_string, cursor_pos); in nimf_service_ic_emit_preedit_changed() 502 nimf_service_ic_emit_preedit_changed (ic, ic->priv->preedit_string, in nimf_service_ic_set_use_preedit() 512 if (ic->priv->preedit_string[0] != 0) in nimf_service_ic_set_use_preedit() 821 ic->priv->preedit_string = g_strdup (""); in nimf_service_ic_constructed() [all …]
|
/dports/x11/virtboard/virtboard-1d30b07870bf6138395d6529ab496e321b8b3938/clients/ |
H A D | keyboard.c | 80 char *preedit_string; member 588 if (!keyboard->preedit_string || in virtual_keyboard_commit_preedit() 589 strlen(keyboard->preedit_string) == 0) in virtual_keyboard_commit_preedit() 608 free(keyboard->preedit_string); in virtual_keyboard_commit_preedit() 609 keyboard->preedit_string = strdup(""); in virtual_keyboard_commit_preedit() 615 uint32_t index = strlen(keyboard->preedit_string); in virtual_keyboard_send_preedit() 737 keyboard->keyboard->preedit_string = in keyboard_handle_key() 760 … keyboard->keyboard->preedit_string[strlen(keyboard->keyboard->preedit_string) - 1] = '\0'; in keyboard_handle_key() 785 keyboard->keyboard->preedit_string = in keyboard_handle_key() 1212 free(keyboard->preedit_string); in handle_input_method_activate() [all …]
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/ThirdParty/nimf/modules/services/wayland/ |
H A D | nimf-wayland-ic.c | 59 const gchar *preedit_string, in nimf_wayland_ic_emit_preedit_changed() argument 69 wayland->serial, preedit_string, preedit_string); in nimf_wayland_ic_emit_preedit_changed()
|
/dports/chinese/fcitx/fcitx-4.2.9.7/src/frontend/gtk3/ |
H A D | fcitximcontext.c | 84 gchar *preedit_string; member 427 context->preedit_string = NULL; in fcitx_im_context_init() 556 g_free(context->preedit_string); in fcitx_im_context_finalize() 557 context->preedit_string = NULL; in fcitx_im_context_finalize() 729 g_free(context->preedit_string); in _fcitx_im_context_update_formatted_preedit_cb() 730 context->preedit_string = NULL; in _fcitx_im_context_update_formatted_preedit_cb() 825 context->preedit_string = str; in _fcitx_im_context_update_formatted_preedit_cb() 832 if (context->preedit_string != NULL && context->preedit_string[0] == 0) { in _fcitx_im_context_update_formatted_preedit_cb() 833 g_free(context->preedit_string); in _fcitx_im_context_update_formatted_preedit_cb() 834 context->preedit_string = NULL; in _fcitx_im_context_update_formatted_preedit_cb() [all …]
|
/dports/chinese/fcitx/fcitx-4.2.9.7/src/frontend/gtk2/ |
H A D | fcitximcontext.c | 84 gchar *preedit_string; member 427 context->preedit_string = NULL; in fcitx_im_context_init() 556 g_free(context->preedit_string); in fcitx_im_context_finalize() 557 context->preedit_string = NULL; in fcitx_im_context_finalize() 729 g_free(context->preedit_string); in _fcitx_im_context_update_formatted_preedit_cb() 730 context->preedit_string = NULL; in _fcitx_im_context_update_formatted_preedit_cb() 825 context->preedit_string = str; in _fcitx_im_context_update_formatted_preedit_cb() 832 if (context->preedit_string != NULL && context->preedit_string[0] == 0) { in _fcitx_im_context_update_formatted_preedit_cb() 833 g_free(context->preedit_string); in _fcitx_im_context_update_formatted_preedit_cb() 834 context->preedit_string = NULL; in _fcitx_im_context_update_formatted_preedit_cb() [all …]
|
/dports/graphics/openorienteering-mapper/mapper-0.9.2/src/tools/ |
H A D | text_object_editor_helper.cpp | 184 return !preedit_string.isEmpty(); in isPreediting() 198 preedit_string.clear(); in commitPreedit() 212 Q_ASSERT(preedit_cursor == qBound(0, preedit_cursor, preedit_string.length())); in commitStateChange() 219 qPrintable(preedit_string.left(preedit_cursor)), in commitStateChange() 220 qPrintable(preedit_string.mid(preedit_cursor)), in commitStateChange() 269 displayed_text.insert(cursor_position, preedit_string); in updateDisplayText() 466 preedit_string = event->preeditString(); in inputMethodEvent() 467 auto new_preedit_cursor = preedit_string.length(); in inputMethodEvent() 511 if (click_position >= 0 && click_position <= preedit_string.length()) in sendMouseEventToInputContext() 810 auto end = qMax(anchor_position, cursor_position) + preedit_string.length(); in draw() [all …]
|
/dports/www/firefox-legacy/firefox-52.8.0esr/widget/gtk/ |
H A D | IMContextWrapper.cpp | 1307 gchar *preedit_string; in GetCompositionString() local 1312 if (preedit_string && *preedit_string) { in GetCompositionString() 1313 CopyUTF8toUTF16(preedit_string, aCompositionString); in GetCompositionString() 1321 this, aContext, preedit_string)); in GetCompositionString() 1324 g_free(preedit_string); in GetCompositionString() 1601 gchar *preedit_string; in CreateTextRangeArray() local 1606 if (!preedit_string || !*preedit_string) { in CreateTextRangeArray() 1614 g_free(preedit_string); in CreateTextRangeArray() 1638 g_utf8_to_utf16(preedit_string, charAfterCaret - preedit_string, in CreateTextRangeArray() 1673 g_free(preedit_string); in CreateTextRangeArray() [all …]
|
/dports/textproc/ibus/ibus-1.5.24/client/x11/ |
H A D | main.c | 73 gchar *preedit_string; member 184 if (preedit_string == NULL) in _xim_preedit_callback_draw() 187 len = g_utf8_strlen (preedit_string, -1); in _xim_preedit_callback_draw() 399 g_free (x11ic->preedit_string); in xim_destroy_ic() 400 x11ic->preedit_string = NULL; in xim_destroy_ic() 588 g_free (x11ic->preedit_string); in _free_ic() 589 x11ic->preedit_string = NULL; in _free_ic() 910 x11ic->preedit_string, x11ic->preedit_attrs); in _update_preedit() 925 if (x11ic->preedit_string) { in _context_update_preedit_text_cb() 926 g_free(x11ic->preedit_string); in _context_update_preedit_text_cb() [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/widget/gtk/ |
H A D | IMContextWrapper.cpp | 1356 gchar* preedit_string; in GetCompositionString() local 1361 if (preedit_string && *preedit_string) { in GetCompositionString() 1362 CopyUTF8toUTF16(preedit_string, aCompositionString); in GetCompositionString() 1370 this, aContext, preedit_string)); in GetCompositionString() 1373 g_free(preedit_string); in GetCompositionString() 1675 gchar* preedit_string; in CreateTextRangeArray() local 1680 if (!preedit_string || !*preedit_string) { in CreateTextRangeArray() 1688 g_free(preedit_string); in CreateTextRangeArray() 1712 g_utf8_to_utf16(preedit_string, charAfterCaret - preedit_string, in CreateTextRangeArray() 1746 g_free(preedit_string); in CreateTextRangeArray() [all …]
|
/dports/textproc/fcitx5-gtk/fcitx5-gtk-5.0.10/gtk2/ |
H A D | fcitximcontext.cpp | 69 gchar *preedit_string; member 337 context->preedit_string = NULL; in fcitx_im_context_init() 428 g_clear_pointer(&context->preedit_string, g_free); in fcitx_im_context_finalize() 643 context->preedit_string = str; in _fcitx_im_context_update_preedit() 646 if (context->preedit_string != NULL && context->preedit_string[0] == 0) { in _fcitx_im_context_update_preedit() 647 g_clear_pointer(&context->preedit_string, g_free); in _fcitx_im_context_update_preedit() 663 if (context->preedit_string != NULL) { in _fcitx_im_context_update_formatted_preedit_cb() 664 if (strlen(context->preedit_string) != 0) { in _fcitx_im_context_update_formatted_preedit_cb() 668 g_clear_pointer(&context->preedit_string, g_free); in _fcitx_im_context_update_formatted_preedit_cb() 768 if (fcitxcontext->preedit_string != NULL) { in fcitx_im_context_focus_out() [all …]
|
/dports/textproc/fcitx5-gtk/fcitx5-gtk-5.0.10/gtk4/ |
H A D | fcitximcontext.cpp | 105 char *preedit_string; member 348 context->preedit_string = NULL; in fcitx_im_context_init() 469 g_clear_pointer(&context->preedit_string, g_free); in fcitx_im_context_finalize() 704 context->preedit_string = str; in _fcitx_im_context_update_preedit() 707 if (context->preedit_string != NULL && context->preedit_string[0] == 0) { in _fcitx_im_context_update_preedit() 708 g_clear_pointer(&context->preedit_string, g_free); in _fcitx_im_context_update_preedit() 724 if (context->preedit_string != NULL) { in _fcitx_im_context_update_formatted_preedit_cb() 725 if (strlen(context->preedit_string) != 0) { in _fcitx_im_context_update_formatted_preedit_cb() 729 g_clear_pointer(&context->preedit_string, g_free); in _fcitx_im_context_update_formatted_preedit_cb() 829 if (fcitxcontext->preedit_string != NULL) { in fcitx_im_context_focus_out() [all …]
|
/dports/korean/libhangul/libhangul-9fe2d4e/hangul/ |
H A D | hangulinputcontext.c | 225 ucschar preedit_string[64]; member 788 hic->preedit_string, in hangul_ic_save_preedit_string() 792 hic->preedit_string, in hangul_ic_save_preedit_string() 793 N_ELEMENTS(hic->preedit_string)); in hangul_ic_save_preedit_string() 1291 hic->preedit_string[0] = 0; in hangul_ic_process() 1324 return hic->preedit_string; in hangul_ic_get_preedit_string() 1368 hic->preedit_string[0] = 0; in hangul_ic_reset() 1380 hic->preedit_string[0] = 0; in hangul_ic_flush_internal() 1410 hic->preedit_string[0] = 0; in hangul_ic_flush() 1448 hic->preedit_string[0] = 0; in hangul_ic_backspace() [all …]
|
/dports/devel/efl/efl-1.25.1/src/examples/ecore/ |
H A D | ecore_imf_example.c | 278 char *preedit_string; in _ecore_imf_event_preedit_changed_cb() local 291 …ecore_imf_context_preedit_string_with_attributes_get(imf_context, &preedit_string, &attrs, &cursor… in _ecore_imf_event_preedit_changed_cb() 292 printf("preedit string : %s\n", preedit_string); in _ecore_imf_event_preedit_changed_cb() 294 if (!strcmp(preedit_string, "")) in _ecore_imf_event_preedit_changed_cb() 303 if (strlen(preedit_string) > 0) in _ecore_imf_event_preedit_changed_cb() 320 evas_object_textblock_text_markup_prepend(en->cursor, preedit_string); in _ecore_imf_event_preedit_changed_cb() 355 free(preedit_string); in _ecore_imf_event_preedit_changed_cb()
|