]> git.decadent.org.uk Git - ion3.git/blob - ioncore/strings.h
df30189b0ca6e9c07a81746ad94f7c328649b10e
[ion3.git] / ioncore / strings.h
1 /*
2  * ion/ioncore/strings.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
6  * Ion is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or
9  * (at your option) any later version.
10  */
11
12 #ifndef ION_IONCORE_STRINGS_H
13 #define ION_IONCORE_STRINGS_H
14
15 #include "common.h"
16
17 #ifdef CF_NO_LOCALE
18 #include "dummywc.h"
19 #else
20 #include <wchar.h>
21 #include <wctype.h>
22 #endif
23
24 #include "gr.h"
25
26 extern bool ioncore_defshortening(const char *rx, const char *rule,
27                                   bool always);
28
29 extern char *grbrush_make_label(GrBrush *brush, const char *str, uint maxw);
30                                        
31 extern int str_nextoff(const char *p, int pos);
32 extern int str_prevoff(const char *p, int pos);
33 extern int str_len(const char *p);
34 extern wchar_t str_wchar_at(char *p, int max);
35 extern char *str_stripws(char *p);
36
37 #endif /* ION_IONCORE_STRINGS_H */