Revision 2407
Added by stephane over 13 years ago
macros.h | ||
---|---|---|
68 | 68 |
/* #define CHAR2WCHAR(c) (c == NIL ? NULL : (PtrObjWChar) MMstart (mm,((PtrObjVoid)MMstart(mm,c))->Buffer>>1))*/ |
69 | 69 |
|
70 | 70 |
/* $Iri : convert any string to utf-8 (should be used with gtk ...) Don't forget to free after used !*/ |
71 |
#define SCOLUTF8(string) g_locale_to_utf8 (string, -1, NULL, NULL, NULL)
|
|
71 |
#define SCOLUTF8(string, len) g_locale_to_utf8 (string, len, NULL, NULL, NULL)
|
|
72 | 72 |
/* $Iri : convert any string from utf-8 Don't forget to free after used !*/ |
73 |
#define UTF8SCOL(string) g_locale_from_utf8 (string, -1, NULL, NULL, NULL)
|
|
73 |
#define UTF8SCOL(string, len) g_locale_from_utf8 (string, len, NULL, NULL, NULL)
|
|
74 | 74 |
/* $Iri : length of the int (234 -> 3)*/ |
75 | 75 |
#define SIZEINT(x) floor (log10 (x)) + 1 |
76 | 76 |
/* $ Iri : float support */ |
Also available in: Unified diff
UTILS_G
- PCRE (regex)
- - add _pcreEasyMatch, _pcreEasySplit, _pcreEasyReplace
- - add _pcreNormalMatch, _pcreNormalSplit