- Timestamp:
- Feb 23, 2011, 5:07:49 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- eb8d9c1
- Parents:
- 60d7935
- git-author:
- David Benjamin <davidben@mit.edu> (02/20/11 17:05:36)
- git-committer:
- David Benjamin <davidben@mit.edu> (02/23/11 17:07:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fmtext.c
rddbbcffa r1137802 584 584 } 585 585 586 /* set the charater at 'index' to be 'char'. If index is out of587 * bounds don't do anything. If c or char at index is not ASCII, don't588 * do anything because it's not UTF-8 safe. */589 void owl_fmtext_set_char(owl_fmtext *f, int index, char ch)590 {591 if ((index < 0) || (index > f->buff->len - 1)) return;592 /* NOT ASCII*/593 if (f->buff->str[index] & 0x80 || ch & 0x80) return;594 f->buff->str[index] = ch;595 }596 597 586 /* Make a copy of the fmtext 'src' into 'dst' */ 598 587 void owl_fmtext_copy(owl_fmtext *dst, const owl_fmtext *src)
Note: See TracChangeset
for help on using the changeset viewer.