- Timestamp:
- Jul 20, 2009, 8:55:25 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 42c2a80
- Parents:
- 203dcda
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
util.c
r3e8ff1e r7f6a8a2 676 676 /* Strips format characters from a valid utf-8 string. Returns the 677 677 empty string if 'in' does not validate. */ 678 char * owl_strip_format_chars(c har *in)678 char * owl_strip_format_chars(const char *in) 679 679 { 680 680 char *r; 681 681 if (g_utf8_validate(in, -1, NULL)) { 682 c har *s, *p;682 const char *s, *p; 683 683 r = owl_malloc(strlen(in)+1); 684 684 r[0] = '\0'; … … 714 714 * for formatting. 715 715 */ 716 char * owl_validate_or_convert(c har *in)716 char * owl_validate_or_convert(const char *in) 717 717 { 718 718 if (g_utf8_validate(in, -1, NULL)) { … … 729 729 * string if it is invalid utf-8. 730 730 */ 731 char * owl_validate_utf8(c har *in)731 char * owl_validate_utf8(const char *in) 732 732 { 733 733 char *out;
Note: See TracChangeset
for help on using the changeset viewer.