diff options
author | Havoc Pennington <hp@redhat.com> | 2001-10-03 20:29:55 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-10-03 20:29:55 +0000 |
commit | 07458e1e02c9a2b935d2dae3c2f9b59b330a77f5 (patch) | |
tree | d3865a496c6095ea714c1e175b00412c6d83b6be /pango/pango-break.h | |
parent | fcb2ec7803e96f6dc0f859cebc004dcc75584c89 (diff) | |
download | pango-07458e1e02c9a2b935d2dae3c2f9b59b330a77f5.tar.gz |
require one more log attr in the buffer passed in, to account for the end
2001-10-03 Havoc Pennington <hp@redhat.com>
* pango/break.c (pango_break)
(pango_default_break) (pango_get_log_attrs): require one more
log attr in the buffer passed in, to account for the end position
(pango_default_break): allow length of -1
* pango/pango-engine.h (struct _PangoEngineLang): change
script_break virtual function to match pango_break
* pango/pango-layout.c (get_items_log_attrs): update pango_break usage
Diffstat (limited to 'pango/pango-break.h')
-rw-r--r-- | pango/pango-break.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pango/pango-break.h b/pango/pango-break.h index b8b692f6..3662009b 100644 --- a/pango/pango-break.h +++ b/pango/pango-break.h @@ -70,9 +70,10 @@ struct _PangoLogAttr * of Unicode text. */ void pango_break (const gchar *text, - gint length, + int length, PangoAnalysis *analysis, - PangoLogAttr *attrs); + PangoLogAttr *attrs, + int attrs_len); void pango_find_paragraph_boundary (const gchar *text, gint length, @@ -83,7 +84,8 @@ void pango_get_log_attrs (const char *text, int length, int level, PangoLanguage *language, - PangoLogAttr *log_attrs); + PangoLogAttr *log_attrs, + int attrs_len); #ifdef PANGO_ENABLE_ENGINE @@ -93,9 +95,10 @@ void pango_get_log_attrs (const char *text, * from a language engine override. */ void pango_default_break (const gchar *text, - gint length, + int length, PangoAnalysis *analysis, - PangoLogAttr *attrs); + PangoLogAttr *attrs, + int attrs_len); #endif /* PANGO_ENABLE_ENGINE */ |