tool 543 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to_end (struct utf8_tool *tool) tool 545 lib/strutil/strutilutf8.c tool->compose = FALSE; tool 547 lib/strutil/strutilutf8.c while (tool->checked[0] != '\0') tool 552 lib/strutil/strutilutf8.c uni = g_utf8_get_char (tool->checked); tool 553 lib/strutil/strutilutf8.c tool->compose = tool->compose || str_unichar_iscombiningmark (uni); tool 555 lib/strutil/strutilutf8.c if (tool->remain <= left) tool 557 lib/strutil/strutilutf8.c left = g_unichar_to_utf8 (uni, tool->actual); tool 558 lib/strutil/strutilutf8.c tool->actual += left; tool 559 lib/strutil/strutilutf8.c tool->remain -= left; tool 560 lib/strutil/strutilutf8.c tool->checked = g_utf8_next_char (tool->checked); tool 571 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (struct utf8_tool *tool, int to_ident) tool 573 lib/strutil/strutilutf8.c tool->compose = FALSE; tool 575 lib/strutil/strutilutf8.c while (tool->checked[0] != '\0') tool 581 lib/strutil/strutilutf8.c uni = g_utf8_get_char (tool->checked); tool 583 lib/strutil/strutilutf8.c tool->compose = TRUE; tool 589 lib/strutil/strutilutf8.c if (tool->ident + w > to_ident) tool 594 lib/strutil/strutilutf8.c if (tool->remain <= left) tool 596 lib/strutil/strutilutf8.c left = g_unichar_to_utf8 (uni, tool->actual); tool 597 lib/strutil/strutilutf8.c tool->actual += left; tool 598 lib/strutil/strutilutf8.c tool->remain -= left; tool 599 lib/strutil/strutilutf8.c tool->checked = g_utf8_next_char (tool->checked); tool 600 lib/strutil/strutilutf8.c tool->ident += w; tool 610 lib/strutil/strutilutf8.c utf8_tool_insert_space (struct utf8_tool *tool, int count) tool 614 lib/strutil/strutilutf8.c if (tool->remain <= (gsize) count) tool 617 lib/strutil/strutilutf8.c memset (tool->actual, ' ', count); tool 618 lib/strutil/strutilutf8.c tool->actual += count; tool 619 lib/strutil/strutilutf8.c tool->remain -= count; tool 627 lib/strutil/strutilutf8.c utf8_tool_insert_char (struct utf8_tool *tool, char ch) tool 629 lib/strutil/strutilutf8.c if (tool->remain <= 1) tool 632 lib/strutil/strutilutf8.c tool->actual[0] = ch; tool 633 lib/strutil/strutilutf8.c tool->actual++; tool 634 lib/strutil/strutilutf8.c tool->remain--; tool 643 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (struct utf8_tool *tool, int to_ident) tool 647 lib/strutil/strutilutf8.c while (to_ident > tool->ident && tool->checked[0] != '\0') tool 649 lib/strutil/strutilutf8.c uni = g_utf8_get_char (tool->checked); tool 652 lib/strutil/strutilutf8.c tool->ident++; tool 654 lib/strutil/strutilutf8.c tool->ident++; tool 656 lib/strutil/strutilutf8.c tool->checked = g_utf8_next_char (tool->checked); tool 659 lib/strutil/strutilutf8.c uni = g_utf8_get_char (tool->checked); tool 662 lib/strutil/strutilutf8.c tool->checked = g_utf8_next_char (tool->checked); tool 663 lib/strutil/strutilutf8.c uni = g_utf8_get_char (tool->checked); tool 688 lib/strutil/strutilutf8.c struct utf8_tool tool; tool 692 lib/strutil/strutilutf8.c tool.checked = pre_form->text; tool 693 lib/strutil/strutilutf8.c tool.actual = result; tool 694 lib/strutil/strutilutf8.c tool.remain = sizeof (result); tool 695 lib/strutil/strutilutf8.c tool.compose = FALSE; tool 703 lib/strutil/strutilutf8.c tool.ident = (width - pre_form->width) / 2; tool 706 lib/strutil/strutilutf8.c tool.ident = width - pre_form->width; tool 709 lib/strutil/strutilutf8.c tool.ident = 0; tool 713 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, tool.ident); tool 714 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to_end (&tool); tool 715 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - pre_form->width - tool.ident); tool 719 lib/strutil/strutilutf8.c tool.ident = 0; tool 720 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width / 2); tool 721 lib/strutil/strutilutf8.c utf8_tool_insert_char (&tool, '~'); tool 723 lib/strutil/strutilutf8.c tool.ident = 0; tool 724 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width + 1); tool 725 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to_end (&tool); tool 726 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - (pre_form->width - tool.ident + 1)); tool 733 lib/strutil/strutilutf8.c tool.ident = (width - pre_form->width) / 2; tool 736 lib/strutil/strutilutf8.c tool.ident = width - pre_form->width; tool 739 lib/strutil/strutilutf8.c tool.ident = 0; tool 743 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, 0); tool 744 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, tool.ident); tool 745 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width); tool 746 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - tool.ident); tool 749 lib/strutil/strutilutf8.c tool.actual[0] = '\0'; tool 750 lib/strutil/strutilutf8.c if (tool.compose) tool 762 lib/strutil/strutilutf8.c struct utf8_tool tool; tool 774 lib/strutil/strutilutf8.c tool.checked = pre_form->text; tool 775 lib/strutil/strutilutf8.c tool.actual = result; tool 776 lib/strutil/strutilutf8.c tool.remain = sizeof (result); tool 777 lib/strutil/strutilutf8.c tool.compose = FALSE; tool 780 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to_end (&tool); tool 783 lib/strutil/strutilutf8.c memset (tool.actual, '.', width1); tool 784 lib/strutil/strutilutf8.c tool.actual += width1; tool 785 lib/strutil/strutilutf8.c tool.remain -= width1; tool 789 lib/strutil/strutilutf8.c memset (tool.actual, '.', 3); tool 790 lib/strutil/strutilutf8.c tool.actual += 3; tool 791 lib/strutil/strutilutf8.c tool.remain -= 3; tool 793 lib/strutil/strutilutf8.c tool.ident = 0; tool 794 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width1 + 3); tool 795 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to_end (&tool); tool 798 lib/strutil/strutilutf8.c tool.actual[0] = '\0'; tool 799 lib/strutil/strutilutf8.c if (tool.compose) tool 840 lib/strutil/strutilutf8.c struct utf8_tool tool; tool 844 lib/strutil/strutilutf8.c tool.checked = pre_form->text; tool 845 lib/strutil/strutilutf8.c tool.actual = result; tool 846 lib/strutil/strutilutf8.c tool.remain = sizeof (result); tool 847 lib/strutil/strutilutf8.c tool.compose = FALSE; tool 849 lib/strutil/strutilutf8.c tool.ident = -start; tool 850 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, 0); tool 851 lib/strutil/strutilutf8.c if (tool.ident < 0) tool 852 lib/strutil/strutilutf8.c tool.ident = 0; tool 853 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, tool.ident); tool 855 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width); tool 856 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - tool.ident); tool 858 lib/strutil/strutilutf8.c tool.actual[0] = '\0'; tool 859 lib/strutil/strutilutf8.c if (tool.compose) tool 871 lib/strutil/strutilutf8.c struct utf8_tool tool; tool 877 lib/strutil/strutilutf8.c tool.checked = pre_form->text; tool 878 lib/strutil/strutilutf8.c tool.actual = result; tool 879 lib/strutil/strutilutf8.c tool.remain = sizeof (result); tool 880 lib/strutil/strutilutf8.c tool.compose = FALSE; tool 883 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to_end (&tool); tool 886 lib/strutil/strutilutf8.c tool.ident = 0; tool 887 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width1 / 2); tool 888 lib/strutil/strutilutf8.c utf8_tool_insert_char (&tool, '~'); tool 890 lib/strutil/strutilutf8.c tool.ident = 0; tool 891 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width1 + 1); tool 892 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to_end (&tool); tool 895 lib/strutil/strutilutf8.c tool.actual[0] = '\0'; tool 896 lib/strutil/strutilutf8.c if (tool.compose)