diff options
author | Timo Sirainen <cras@irssi.org> | 2001-03-12 10:34:04 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-03-12 10:34:04 +0000 |
commit | 7ced2beab412c51b80155bd7ef98f9fff117f6d1 (patch) | |
tree | 7bfc66eef4e99bd730e23b609601b44b8532c2f6 /src/fe-common/core/formats.h | |
parent | 4d5da596c9854ae60f699ffda8dc931e0b528365 (diff) | |
download | irssi-7ced2beab412c51b80155bd7ef98f9fff117f6d1.zip |
added format_real_length()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1380 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/formats.h')
-rw-r--r-- | src/fe-common/core/formats.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fe-common/core/formats.h b/src/fe-common/core/formats.h index fdd27015..0dd46489 100644 --- a/src/fe-common/core/formats.h +++ b/src/fe-common/core/formats.h @@ -44,6 +44,10 @@ int format_find_tag(const char *module, const char *tag); /* Return length of text part in string (ie. without % codes) */ int format_get_length(const char *str); +/* Return how many characters in `str' must be skipped before `len' + characters of text is skipped. Like strip_real_length(), except this + handles %codes. */ +int format_real_length(const char *str, int len); char *format_get_text(const char *module, WINDOW_REC *window, void *server, const char *target, |