- Timestamp:
- Jun 25, 2011, 3:26:15 AM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 12294d2
- Parents:
- 95b52d1
- git-author:
- David Benjamin <davidben@mit.edu> (06/24/11 22:56:15)
- git-committer:
- David Benjamin <davidben@mit.edu> (06/25/11 03:26:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
text.c
rd427f08 r6829afc 7 7 /* Returns a copy of 'in' with each line indented 'n' 8 8 * characters. Result must be freed with g_free. */ 9 G_GNUC_WARN_UNUSED_RESULTchar *owl_text_indent(const char *in, int n)9 CALLER_OWN 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 G_GNUC_WARN_UNUSED_RESULTchar *owl_text_htmlstrip(const char *in)50 CALLER_OWN 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 G_GNUC_WARN_UNUSED_RESULTchar *owl_text_expand_tabs(const char *in)131 CALLER_OWN 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 G_GNUC_WARN_UNUSED_RESULTchar *owl_text_wordwrap(const char *in, int col)190 CALLER_OWN 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 G_GNUC_WARN_UNUSED_RESULTchar *owl_text_substitute(const char *in, const char *from, const char *to)271 CALLER_OWN 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 G_GNUC_WARN_UNUSED_RESULTchar *owl_text_quote(const char *in, const char *toquote, const char *quotestr)286 CALLER_OWN 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.