summaryrefslogtreecommitdiff
path: root/pango/break.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-12-12 15:43:50 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-12-12 15:43:50 -0500
commit8d39b9ac1d6462a224d37a4cbc0d81b052c0e313 (patch)
tree826a6ee374332f74f549be062fe08ae21892ab0f /pango/break.c
parent26f1135f374f3ad5eb963dcdf016542fbbda361b (diff)
downloadpango-8d39b9ac1d6462a224d37a4cbc0d81b052c0e313.tar.gz
Clarify docs around text input
Make it clear that all text input must be valid UTF-8, except in the case pango_layout_set_text, which we now officially document as accepting and handling invalid input.
Diffstat (limited to 'pango/break.c')
-rw-r--r--pango/break.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/break.c b/pango/break.c
index cdac9c27..355518eb 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -139,7 +139,7 @@ typedef enum
/**
* pango_default_break:
- * @text: text to break
+ * @text: text to break. Must be valid UTF-8
* @length: length of text in bytes (may be -1 if @text is nul-terminated)
* @analysis: (nullable): a #PangoAnalysis for the @text
* @attrs: logical attributes to fill in
@@ -1650,7 +1650,7 @@ tailor_break (const gchar *text,
/**
* pango_break:
- * @text: the text to process
+ * @text: the text to process. Must be valid UTF-8
* @length: length of @text in bytes (may be -1 if @text is nul-terminated)
* @analysis: #PangoAnalysis structure from pango_itemize()
* @attrs: (array length=attrs_len): an array to store character
@@ -1810,7 +1810,7 @@ tailor_segment (const char *range_start,
/**
* pango_get_log_attrs:
- * @text: text to process
+ * @text: text to process. Must be valid UTF-8
* @length: length in bytes of @text
* @level: embedding level, or -1 if unknown
* @language: language tag