- Timestamp:
- Jun 22, 2011, 3:40:50 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- b343c2c
- Parents:
- 84a071f
- git-author:
- Jason Gross <jgross@mit.edu> (06/06/11 05:24:30)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (06/22/11 15:40:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
text.c
r7865479 rd427f08 7 7 /* Returns a copy of 'in' with each line indented 'n' 8 8 * characters. Result must be freed with g_free. */ 9 char *owl_text_indent(const char *in, int n)9 G_GNUC_WARN_UNUSED_RESULT char *owl_text_indent(const char *in, int n) 10 10 { 11 11 const char *ptr1, *ptr2, *last; … … 48 48 49 49 /* caller must free the return */ 50 char *owl_text_htmlstrip(const char *in)50 G_GNUC_WARN_UNUSED_RESULT char *owl_text_htmlstrip(const char *in) 51 51 { 52 52 const char *ptr1, *end, *ptr2, *ptr3; … … 129 129 130 130 /* Caller must free return */ 131 char *owl_text_expand_tabs(const char *in)131 G_GNUC_WARN_UNUSED_RESULT char *owl_text_expand_tabs(const char *in) 132 132 { 133 133 int len = 0; … … 188 188 189 189 /* caller must free the return */ 190 char *owl_text_wordwrap(const char *in, int col)190 G_GNUC_WARN_UNUSED_RESULT char *owl_text_wordwrap(const char *in, int col) 191 191 { 192 192 char *out; … … 269 269 * Caller must free returned string. 270 270 */ 271 char *owl_text_substitute(const char *in, const char *from, const char *to)271 G_GNUC_WARN_UNUSED_RESULT char *owl_text_substitute(const char *in, const char *from, const char *to) 272 272 { 273 273 char **split = g_strsplit(in, from, 0), *out; … … 284 284 * On success returns the string, on error returns NULL. 285 285 */ 286 char *owl_text_quote(const char *in, const char *toquote, const char *quotestr)286 G_GNUC_WARN_UNUSED_RESULT char *owl_text_quote(const char *in, const char *toquote, const char *quotestr) 287 287 { 288 288 int i, x, r, place, escape;
Note: See TracChangeset
for help on using the changeset viewer.