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 691 lib/strutil/strutilutf8.c tool.checked = pre_form->text; tool 692 lib/strutil/strutilutf8.c tool.actual = result; tool 693 lib/strutil/strutilutf8.c tool.remain = sizeof (result); tool 694 lib/strutil/strutilutf8.c tool.compose = FALSE; tool 702 lib/strutil/strutilutf8.c tool.ident = (width - pre_form->width) / 2; tool 705 lib/strutil/strutilutf8.c tool.ident = width - pre_form->width; tool 708 lib/strutil/strutilutf8.c tool.ident = 0; tool 712 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, tool.ident); tool 713 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to_end (&tool); tool 714 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - pre_form->width - tool.ident); tool 718 lib/strutil/strutilutf8.c tool.ident = 0; tool 719 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width / 2); tool 720 lib/strutil/strutilutf8.c utf8_tool_insert_char (&tool, '~'); tool 722 lib/strutil/strutilutf8.c tool.ident = 0; tool 723 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width + 1); tool 724 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to_end (&tool); tool 725 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - (pre_form->width - tool.ident + 1)); tool 732 lib/strutil/strutilutf8.c tool.ident = (width - pre_form->width) / 2; tool 735 lib/strutil/strutilutf8.c tool.ident = width - pre_form->width; tool 738 lib/strutil/strutilutf8.c tool.ident = 0; tool 742 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, 0); tool 743 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, tool.ident); tool 744 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width); tool 745 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - tool.ident); tool 748 lib/strutil/strutilutf8.c tool.actual[0] = '\0'; tool 749 lib/strutil/strutilutf8.c if (tool.compose) tool 761 lib/strutil/strutilutf8.c struct utf8_tool tool; tool 771 lib/strutil/strutilutf8.c tool.checked = pre_form->text; tool 772 lib/strutil/strutilutf8.c tool.actual = result; tool 773 lib/strutil/strutilutf8.c tool.remain = sizeof (result); tool 774 lib/strutil/strutilutf8.c tool.compose = FALSE; tool 777 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to_end (&tool); tool 780 lib/strutil/strutilutf8.c memset (tool.actual, '.', width); tool 781 lib/strutil/strutilutf8.c tool.actual += width; tool 782 lib/strutil/strutilutf8.c tool.remain -= width; tool 786 lib/strutil/strutilutf8.c memset (tool.actual, '.', 3); tool 787 lib/strutil/strutilutf8.c tool.actual += 3; tool 788 lib/strutil/strutilutf8.c tool.remain -= 3; tool 790 lib/strutil/strutilutf8.c tool.ident = 0; tool 791 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width + 3); tool 792 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to_end (&tool); tool 795 lib/strutil/strutilutf8.c tool.actual[0] = '\0'; tool 796 lib/strutil/strutilutf8.c if (tool.compose) tool 838 lib/strutil/strutilutf8.c struct utf8_tool tool; tool 842 lib/strutil/strutilutf8.c tool.checked = pre_form->text; tool 843 lib/strutil/strutilutf8.c tool.actual = result; tool 844 lib/strutil/strutilutf8.c tool.remain = sizeof (result); tool 845 lib/strutil/strutilutf8.c tool.compose = FALSE; tool 847 lib/strutil/strutilutf8.c tool.ident = -start; tool 848 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, 0); tool 849 lib/strutil/strutilutf8.c if (tool.ident < 0) tool 850 lib/strutil/strutilutf8.c tool.ident = 0; tool 851 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, tool.ident); tool 853 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width); tool 854 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - tool.ident); tool 856 lib/strutil/strutilutf8.c tool.actual[0] = '\0'; tool 857 lib/strutil/strutilutf8.c if (tool.compose) tool 869 lib/strutil/strutilutf8.c struct utf8_tool tool; tool 873 lib/strutil/strutilutf8.c tool.checked = pre_form->text; tool 874 lib/strutil/strutilutf8.c tool.actual = result; tool 875 lib/strutil/strutilutf8.c tool.remain = sizeof (result); tool 876 lib/strutil/strutilutf8.c tool.compose = FALSE; tool 879 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to_end (&tool); tool 882 lib/strutil/strutilutf8.c tool.ident = 0; tool 883 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width / 2); tool 884 lib/strutil/strutilutf8.c utf8_tool_insert_char (&tool, '~'); tool 886 lib/strutil/strutilutf8.c tool.ident = 0; tool 887 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width + 1); tool 888 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to_end (&tool); tool 891 lib/strutil/strutilutf8.c tool.actual[0] = '\0'; tool 892 lib/strutil/strutilutf8.c if (tool.compose)