diff options
author | Jonas Dreßler <verdre@v0yd.nl> | 2020-02-12 11:45:57 +0100 |
---|---|---|
committer | Jonas Dreßler <verdre@v0yd.nl> | 2020-06-07 18:23:18 +0200 |
commit | f1ad230857df4a9d34f2230ecff41fe03ec89800 (patch) | |
tree | d946a017fca6626f30230586865a0a33404aaaa9 /docs | |
parent | 9774cb24ea7d049abdc0d9fd5da2e8e3170f1a05 (diff) | |
download | pango-f1ad230857df4a9d34f2230ecff41fe03ec89800.tar.gz |
Add API to compare PangoAttrLists
Add a new `pango_attr_list_equal` API that allows comparing the
attributes included in two PangoAttrLists and returns TRUE if the lists
contain the same attributes and apply to the same ranges.
The function avoids any copying of attributes or lists and applies a
minor optimization of skipping the equality check for attributes that
were already found in both lists. Other possible optimizations that
could be added if necessary would be storing the length of the
attributes list in the PangoAttrList class to avoid the `g_slist_length`
calls or reusing the `other_iter` pointer in case all attributes from 0
to n were already found.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/pango-sections.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/pango-sections.txt b/docs/pango-sections.txt index e87b8750..4648816b 100644 --- a/docs/pango-sections.txt +++ b/docs/pango-sections.txt @@ -440,6 +440,7 @@ pango_attr_list_filter pango_attr_list_update PangoAttrFilterFunc pango_attr_list_get_attributes +pango_attr_list_equal pango_attr_list_get_iterator PangoAttrIterator pango_attr_iterator_copy |